]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Remove a load from the s390x dispatcher loop, as per r11781.
authorJulian Seward <jseward@acm.org>
Sun, 29 May 2011 09:38:58 +0000 (09:38 +0000)
committerJulian Seward <jseward@acm.org>
Sun, 29 May 2011 09:38:58 +0000 (09:38 +0000)
(Florian Krohm <britzel@acm.org>).  #274378.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11787

coregrind/m_dispatch/dispatch-s390x-linux.S

index 4b9a800222b8bb93712b8b1bb26f2125417485b6..bc3b0fd84b43210923074ecf8f57a87b4dc5d668 100644 (file)
@@ -135,8 +135,9 @@ run_innerloop__dispatch_unprofiled:
            r15 = stack pointer (as usual)
         */
 
-       /* Has the guest state pointer been messed with?  If yes, exit. */
-        cg   %r13,S390_LOC_SAVED_GSP    /* r13 = actual guest state pointer */
+        /* Has the guest state pointer been messed with? If yes, exit.
+           The mess is recognised by r13 containing an odd value. */
+        tmll %r13,1
         larl %r8, VG_(tt_fast)
         jne  gsp_changed
 
@@ -188,8 +189,9 @@ run_innerloop__dispatch_unprofiled:
 
 run_innerloop__dispatch_profiled:
 
-       /* Has the guest state pointer been messed with?  If yes, exit. */
-        cg   %r13,S390_LOC_SAVED_GSP    /* r13 = actual guest state pointer */
+        /* Has the guest state pointer been messed with?  If yes, exit.
+           The mess is recognised by r13 containing an odd value. */
+        tmll %r13,1
         larl %r8, VG_(tt_fast)
         jne  gsp_changed