|
From: Carl L. <ca...@so...> - 2021-01-11 21:40:49
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=10f16e8d9ed8dc088bc0ae86044d86e3efb9eb1a commit 10f16e8d9ed8dc088bc0ae86044d86e3efb9eb1a Author: Carl Love <ce...@us...> Date: Sat Jan 9 20:15:46 2021 -0600 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: --- include/pub_tool_machine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 |