From: Julian Seward Date: Thu, 22 Dec 2005 03:01:17 +0000 (+0000) Subject: small fixes for ppc64 layout stuff X-Git-Tag: svn/VALGRIND_3_2_3^2~152 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1754c8cdda102f659181404d182df12d46e03407;p=thirdparty%2Fvalgrind.git small fixes for ppc64 layout stuff git-svn-id: svn://svn.valgrind.org/vex/trunk@1502 --- diff --git a/VEX/priv/guest-ppc32/ghelpers.c b/VEX/priv/guest-ppc32/ghelpers.c index c09639de02..a32bdc15f7 100644 --- a/VEX/priv/guest-ppc32/ghelpers.c +++ b/VEX/priv/guest-ppc32/ghelpers.c @@ -624,11 +624,11 @@ Bool guest_ppc64_state_requires_precise_mem_exns ( Int minoff, Int maxoff ) { Int lr_min = offsetof(VexGuestPPC64State, guest_LR); - Int lr_max = lr_min + 4 - 1; + Int lr_max = lr_min + 8 - 1; Int r1_min = offsetof(VexGuestPPC64State, guest_GPR1); - Int r1_max = r1_min + 4 - 1; + Int r1_max = r1_min + 8 - 1; Int cia_min = offsetof(VexGuestPPC64State, guest_CIA); - Int cia_max = cia_min + 4 - 1; + Int cia_max = cia_min + 8 - 1; if (maxoff < lr_min || minoff > lr_max) { /* no overlap with LR */ @@ -697,11 +697,11 @@ VexGuestLayout /* Describe the stack pointer. */ .offset_SP = offsetof(VexGuestPPC64State,guest_GPR1), - .sizeof_SP = 4, + .sizeof_SP = 8, /* Describe the instruction pointer. */ .offset_IP = offsetof(VexGuestPPC64State,guest_CIA), - .sizeof_IP = 4, + .sizeof_IP = 8, /* Describe any sections to be regarded by Memcheck as 'always-defined'. */