|
From: <sv...@va...> - 2008-12-03 21:44:55
|
Author: sewardj
Date: 2008-12-03 21:31:48 +0000 (Wed, 03 Dec 2008)
New Revision: 8804
Log:
Assert that the guest state size is a multiple of 16, not 8.
Modified:
trunk/coregrind/m_initimg/initimg-aix5.c
trunk/coregrind/m_initimg/initimg-linux.c
Modified: trunk/coregrind/m_initimg/initimg-aix5.c
===================================================================
--- trunk/coregrind/m_initimg/initimg-aix5.c 2008-12-03 11:39:37 UTC (rev 8803)
+++ trunk/coregrind/m_initimg/initimg-aix5.c 2008-12-03 21:31:48 UTC (rev 8804)
@@ -292,7 +292,7 @@
# 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 @@
# 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. */
Modified: trunk/coregrind/m_initimg/initimg-linux.c
===================================================================
--- trunk/coregrind/m_initimg/initimg-linux.c 2008-12-03 11:39:37 UTC (rev 8803)
+++ trunk/coregrind/m_initimg/initimg-linux.c 2008-12-03 21:31:48 UTC (rev 8804)
@@ -955,7 +955,7 @@
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 @@
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 @@
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. */
|