From: Carl Love Date: Sun, 10 Jan 2021 02:15:46 +0000 (-0600) Subject: PPC64: Fix for VG_MAX_INSTR_SZB, max instruction size is now 8bytes for prefix inst X-Git-Tag: VALGRIND_3_17_0~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10f16e8d9ed8dc088bc0ae86044d86e3efb9eb1a;p=thirdparty%2Fvalgrind.git PPC64: Fix for VG_MAX_INSTR_SZB, max instruction size is now 8bytes for prefix inst 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. --- diff --git a/include/pub_tool_machine.h b/include/pub_tool_machine.h index 25e125653b..150b975f59 100644 --- a/include/pub_tool_machine.h +++ b/include/pub_tool_machine.h @@ -53,7 +53,7 @@ #elif defined(VGP_ppc64be_linux) || defined(VGP_ppc64le_linux) # define VG_MIN_INSTR_SZB 4 -# define VG_MAX_INSTR_SZB 4 +# 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