]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
When switching threads on ppc64, clear the reservation pseudo-reg, as on ppc32.
authorJulian Seward <jseward@acm.org>
Thu, 22 Dec 2005 15:16:43 +0000 (15:16 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 22 Dec 2005 15:16:43 +0000 (15:16 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5404

coregrind/m_scheduler/scheduler.c

index bd08fe6db3fdd8280c7a79c8ca13dabf65032281..1e131199f318e162a11c9cc30e3f8f6fb01b6823 100644 (file)
@@ -395,7 +395,7 @@ UInt run_thread_for_a_while ( ThreadId tid )
    vg_assert(sz_spill == LibVEX_N_SPILL_BYTES);
    vg_assert(a_vex + 2 * sz_vex == a_spill);
 
-#  if defined(VGA_ppc32)
+#  if defined(VGA_ppc32) || defined(VGA_ppc64)
    /* This is necessary due to the hacky way vex models reservations
       on ppc.  It's really quite incorrect for each thread to have its
       own reservation flag/address, since it's really something that