mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-06 03:23:58 +00:00
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:
parent
a6613bcb2b
commit
46540c12ed
@ -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. */
|
||||
|
||||
@ -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. */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user