Assert that the guest state size is a multiple of 16, not 8.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8804
This commit is contained in:
Julian Seward 2008-12-03 21:31:48 +00:00
parent a6613bcb2b
commit 46540c12ed
2 changed files with 5 additions and 5 deletions

View File

@ -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. */

View File

@ -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. */