From: Julian Seward Date: Mon, 21 May 2012 11:00:41 +0000 (+0000) Subject: Ensure ppc64 guest state size is 32-byte aligned, as per increase in X-Git-Tag: svn/VALGRIND_3_8_1^2~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d016edb1cc3d79ddbdb723e0a835ce807701e4d;p=thirdparty%2Fvalgrind.git Ensure ppc64 guest state size is 32-byte aligned, as per increase in alignment requirements resulting from r12569/r2330. git-svn-id: svn://svn.valgrind.org/vex/trunk@2331 --- diff --git a/VEX/priv/guest_ppc_helpers.c b/VEX/priv/guest_ppc_helpers.c index 7944f8201e..cfbaa546b4 100644 --- a/VEX/priv/guest_ppc_helpers.c +++ b/VEX/priv/guest_ppc_helpers.c @@ -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; } diff --git a/VEX/pub/libvex_guest_ppc64.h b/VEX/pub/libvex_guest_ppc64.h index c3c02924f7..3caf33e8da 100644 --- a/VEX/pub/libvex_guest_ppc64.h +++ b/VEX/pub/libvex_guest_ppc64.h @@ -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;