From: Julian Seward Date: Wed, 3 Dec 2008 21:31:48 +0000 (+0000) Subject: Assert that the guest state size is a multiple of 16, not 8. X-Git-Tag: svn/VALGRIND_3_4_0~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46540c12edce02c93f5ee2b63dddb546cb52fbe0;p=thirdparty%2Fvalgrind.git Assert that the guest state size is a multiple of 16, not 8. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8804 --- diff --git a/coregrind/m_initimg/initimg-aix5.c b/coregrind/m_initimg/initimg-aix5.c index 0d62e622f5..4b592dc0f8 100644 --- a/coregrind/m_initimg/initimg-aix5.c +++ b/coregrind/m_initimg/initimg-aix5.c @@ -292,7 +292,7 @@ void VG_(ii_finalise_image)( IIFinaliseImageInfo iifii ) # if defined(VGP_ppc32_aix5) - vg_assert(0 == sizeof(VexGuestPPC32State) % 8); + vg_assert(0 == sizeof(VexGuestPPC32State) % 16); /* Zero out the initial state, and set up the simulated FPU in a sane way. */ @@ -304,7 +304,7 @@ void VG_(ii_finalise_image)( IIFinaliseImageInfo iifii ) # else /* defined(VGP_ppc64_aix5) */ - vg_assert(0 == sizeof(VexGuestPPC64State) % 8); + vg_assert(0 == sizeof(VexGuestPPC64State) % 16); /* Zero out the initial state, and set up the simulated FPU in a sane way. */ diff --git a/coregrind/m_initimg/initimg-linux.c b/coregrind/m_initimg/initimg-linux.c index d1cb5f3a7d..a886fba8d4 100644 --- a/coregrind/m_initimg/initimg-linux.c +++ b/coregrind/m_initimg/initimg-linux.c @@ -955,7 +955,7 @@ void VG_(ii_finalise_image)( IIFinaliseImageInfo iifii ) all other registers zeroed. */ # if defined(VGP_x86_linux) - vg_assert(0 == sizeof(VexGuestX86State) % 8); + vg_assert(0 == sizeof(VexGuestX86State) % 16); /* Zero out the initial state, and set up the simulated FPU in a sane way. */ @@ -976,7 +976,7 @@ void VG_(ii_finalise_image)( IIFinaliseImageInfo iifii ) asm volatile("movw %%ss, %0" : : "m" (arch->vex.guest_SS)); # elif defined(VGP_amd64_linux) - vg_assert(0 == sizeof(VexGuestAMD64State) % 8); + vg_assert(0 == sizeof(VexGuestAMD64State) % 16); /* Zero out the initial state, and set up the simulated FPU in a sane way. */ @@ -991,7 +991,7 @@ void VG_(ii_finalise_image)( IIFinaliseImageInfo iifii ) arch->vex.guest_RIP = iifii.initial_client_IP; # elif defined(VGP_ppc32_linux) - vg_assert(0 == sizeof(VexGuestPPC32State) % 8); + vg_assert(0 == sizeof(VexGuestPPC32State) % 16); /* Zero out the initial state, and set up the simulated FPU in a sane way. */