]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Ensure ppc64 guest state size is 32-byte aligned, as per increase in
authorJulian Seward <jseward@acm.org>
Mon, 21 May 2012 11:00:41 +0000 (11:00 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 21 May 2012 11:00:41 +0000 (11:00 +0000)
alignment requirements resulting from r12569/r2330.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2331

VEX/priv/guest_ppc_helpers.c
VEX/pub/libvex_guest_ppc64.h

index 7944f8201ec91b20f0e79039483ca8f7c1471763..cfbaa546b4093602176257d7e81494230e4e4d0f 100644 (file)
@@ -677,6 +677,8 @@ void LibVEX_GuestPPC64_initialise ( /*OUT*/VexGuestPPC64State* vex_state )
    vex_state->guest_SPRG3_RO = 0;
 
    vex_state->padding2 = 0;
+   vex_state->padding3 = 0;
+   vex_state->padding4 = 0;
 }
 
 
index c3c02924f7ba4eca71a4e23e255447b430ad71ee..3caf33e8dac509c4eafddd79b00b0368a0aad3cc 100644 (file)
@@ -280,8 +280,11 @@ typedef
          threading on AIX. */
       /* 1648 */ ULong guest_SPRG3_RO;
 
+      /* offsets in comments are wrong ..*/
       /* Padding to make it have an 16-aligned size */
       /* 1656 */ ULong padding2;
+      /* 16XX */ ULong padding3;
+      /* 16XX */ ULong padding4;
    }
    VexGuestPPC64State;