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.
This commit is contained in:
Carl Love 2021-01-09 20:15:46 -06:00
parent ebb8ad0156
commit 10f16e8d9e

View 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 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