From: Julian Seward Date: Sun, 29 May 2011 09:38:58 +0000 (+0000) Subject: Remove a load from the s390x dispatcher loop, as per r11781. X-Git-Tag: svn/VALGRIND_3_7_0~450 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b9393890716524151ea9a2608ca175945aa871e;p=thirdparty%2Fvalgrind.git Remove a load from the s390x dispatcher loop, as per r11781. (Florian Krohm ). #274378. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11787 --- diff --git a/coregrind/m_dispatch/dispatch-s390x-linux.S b/coregrind/m_dispatch/dispatch-s390x-linux.S index 4b9a800222..bc3b0fd84b 100644 --- a/coregrind/m_dispatch/dispatch-s390x-linux.S +++ b/coregrind/m_dispatch/dispatch-s390x-linux.S @@ -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