From: Cerion Armour-Brown Date: Mon, 12 Sep 2005 22:53:39 +0000 (+0000) Subject: assert ppc guest_state vector regs are 16byte aligned X-Git-Tag: svn/VALGRIND_3_1_0~462 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17d2cd1342f86ac3d39f88f72744811a667620f6;p=thirdparty%2Fvalgrind.git assert ppc guest_state vector regs are 16byte aligned git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4627 --- diff --git a/coregrind/m_scheduler/scheduler.c b/coregrind/m_scheduler/scheduler.c index acb27dfeb7..09b1882f71 100644 --- a/coregrind/m_scheduler/scheduler.c +++ b/coregrind/m_scheduler/scheduler.c @@ -410,6 +410,10 @@ UInt run_thread_for_a_while ( ThreadId tid ) for (i = 0; i < VG_N_THREADS; i++) VG_(threads)[i].arch.vex.guest_RESVN = 0; } + + /* ppc guest_state vector regs must be 16byte aligned for loads/stores */ + vg_assert(VG_IS_16_ALIGNED(VG_(threads)[tid].arch.vex.guest_VR0)); + vg_assert(VG_IS_16_ALIGNED(VG_(threads)[tid].arch.vex_shadow.guest_VR0)); # endif /* there should be no undealt-with signals */