Bug 441512 - remove troublesome block of code from guest_ppc_toIR code for pstxvp instruction
Summary: remove troublesome block of code from guest_ppc_toIR code for pstxvp instruction
Status: REPORTED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-24 22:31 UTC by Will Schmidt
Modified: 2021-09-07 18:34 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
proposed patch to remove improper R=1 check and return. (1.01 KB, patch)
2021-08-24 22:31 UTC, Will Schmidt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Will Schmidt 2021-08-24 22:31:49 UTC
Created attachment 141023 [details]
proposed patch to remove improper R=1 check and return.

SUMMARY

A chunk of code was committed that should have been removed during initial development of support for the pstxvp instruction.
This chunk of code prevents the emulation of the pstxvp instruction, which is showing up in current builds targeting the power10 platform.

STEPS TO REPRODUCE
1. Build valgrind on/for a Power10 system.
2. Run testsuite (test_isa_3_1_XT) or other tests utilizing the pstxvp instruction.
3.

OBSERVED RESULT
failure.

EXPECTED RESULT
success.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Proposed patch attached.
Comment 1 Carl Love 2021-09-07 18:34:05 UTC
Proposed patch reviewed, tested and committed.

commit 041f6c19a0cd40fe684571c380399be518b8d6b2 (HEAD -> master, origin/master, origin/HEAD)
Author: Carl Love <cel@us.ibm.com>
Date:   Fri Sep 3 16:36:31 2021 +0000

    Remove a unneeded / unnecessary prefix check.
    
    The pstxvp instruction is valid for R=1, i.e. use pc relative addressing.
    The test should have been remmoved before committing the ISA 3.1 support.
    
    https://bugs.kde.org/show_bug.cgi?id=441512