Add valgrind-3.17.0-ppc64-pstxvp.patch

This commit is contained in:
Mark Wielaard 2021-08-25 16:14:59 +02:00
parent b35e0b892c
commit cfaf74d97d
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,27 @@
commit a7216a4c4cc676e8f4750e71e7de654c0ce78ca3
Author: Will Schmidt <will_schmidt@vnet.ibm.com>
Date: Tue Aug 24 13:18:11 2021 -0500
Remove a unneeded / unnecessary prefix check.
diff --git a/VEX/priv/guest_ppc_toIR.c b/VEX/priv/guest_ppc_toIR.c
index f223fe9456..57ac7bcf48 100644
--- a/VEX/priv/guest_ppc_toIR.c
+++ b/VEX/priv/guest_ppc_toIR.c
@@ -14561,16 +14561,10 @@ static Bool dis_fp_pair_prefix ( UInt prefix, UInt theInstr )
/* Endian aware prefixed load */
pDIP( is_prefix, "stxvp %u,%llu(%u)\n", XTp, immediate_val, rA_addr );
DIPp( is_prefix, ",%u", R );
- if ( R == 1 ) {
- vex_printf("Illegal instruction R = 1; pstxvp %u,%llu(%u)\n",
- XTp, immediate_val, rA_addr );
- return False;
- }
-
assign( EA_8, binop( Iop_Add64, mkU64( 8 ), mkexpr( EA ) ) );
assign( EA_16, binop( Iop_Add64, mkU64( 16 ), mkexpr( EA ) ) );
assign( EA_24, binop( Iop_Add64, mkU64( 24 ), mkexpr( EA ) ) );
if (host_endness == VexEndnessBE) {

View File

@ -169,6 +169,9 @@ Patch19: valgrind-3.17.0-vgdb-queued-signals.patch
# KDE#440906 update test_isa_3_1_common.c to avoid modulo against hard regs
Patch20: valgrind-3.17.0-ppc64-test-isa-3-1.patch
# KDE#441512 remove troublesome block of code from guest_ppc_toIR for pstxvp
Patch21: valgrind-3.17.0-ppc64-pstxvp.patch
BuildRequires: make
BuildRequires: glibc-devel
@ -328,6 +331,7 @@ touch memcheck/tests/s390x/vistr.stdout.exp
%patch18 -p1
%patch19 -p1
%patch20 -p1
%patch21 -p1
%build
# LTO triggers undefined symbols in valgrind. Valgrind has a --enable-lto
@ -556,6 +560,7 @@ fi
* Wed Aug 25 2021 Mark Wielaard <mjw@fedoraproject.org>
- Add valgrind-3.17.0-vgdb-queued-signals.patch
- Add valgrind-3.17.0-ppc64-test-isa-3-1.patch
- Add valgrind-3.17.0-ppc64-pstxvp.patch
* Fri Aug 6 2021 Mark Wielaard <mjw@fedoraproject.org> - 3.17.0-11
- Add valgrind-3.17.0-ppc64-statfs64.patch