]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Deal better with x86 'rep nop' (P4 pause hint).
authorJulian Seward <jseward@acm.org>
Sat, 12 Mar 2005 16:47:18 +0000 (16:47 +0000)
committerJulian Seward <jseward@acm.org>
Sat, 12 Mar 2005 16:47:18 +0000 (16:47 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@1024

VEX/priv/guest-x86/toIR.c

index ceb1aaddc3dca6b9b5a7e727e1949c80838c0b25..d56a1363ace3c767886028e39d409df3a41b282a 100644 (file)
@@ -11305,14 +11305,10 @@ DisResult disInstr ( /*IN*/  Bool       resteerOK,
       case 0x90:           /* REP NOP (PAUSE) */
          /* a hint to the P4 re spin-wait loop */
          DIP("rep nop (P4 pause)\n");
-#        if 0
-         /* "observe" the hint.  Can cause very long delays, though. */
+         /* "observe" the hint.  The Vex client needs to be careful not
+            to cause very long delays as a result, though. */
          jmp_lit(Ijk_Yield, ((Addr32)guest_eip_bbstart)+delta);
          whatNext = Dis_StopHere;
-#        else
-         /* act like it's a no-op */
-         whatNext = Dis_Continue;
-#        endif
          break;
 
 //--       case 0xC3:           /* REP RET */