]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
PPC64: Fix for VG_MAX_INSTR_SZB, max instruction size is now 8bytes for prefix inst
authorCarl Love <cel@us.ibm.com>
Sun, 10 Jan 2021 02:15:46 +0000 (20:15 -0600)
committerCarl Love <cel@us.ibm.com>
Mon, 11 Jan 2021 21:28:09 +0000 (15:28 -0600)
The ISA 3.1 support has both word instructions of length 4-bytes and prefixed
instruction of length 8-bytes.  The following fix is needed when Valgrind
is compiled using an ISA 3.1 compiler.

include/pub_tool_machine.h

index 25e125653b1c1305a19e3571815af061cae4da79..150b975f59e96e35704402470c0c19b6ada18540 100644 (file)
@@ -53,7 +53,7 @@
 
 #elif defined(VGP_ppc64be_linux)  || defined(VGP_ppc64le_linux)
 #  define VG_MIN_INSTR_SZB          4
-#  define VG_MAX_INSTR_SZB          
+#  define VG_MAX_INSTR_SZB          8 // Prefix inst 8 bytes, word inst 4 bytes
 #  define VG_CLREQ_SZB             20
 #  define VG_STACK_REDZONE_SZB    288  // number of addressable bytes below R1
                                        // from 64-bit PowerPC ELF ABI