]> git.pld-linux.org Git - packages/valgrind.git/blobdiff - valgrind-repret.patch
- handle REP RET
[packages/valgrind.git] / valgrind-repret.patch
diff --git a/valgrind-repret.patch b/valgrind-repret.patch
new file mode 100644 (file)
index 0000000..4969ab5
--- /dev/null
@@ -0,0 +1,21 @@
+Index: priv/guest-x86/toIR.c
+===================================================================
+--- VEX/priv/guest-x86/toIR.c  (wersja 1331)
++++ VEX/priv/guest-x86/toIR.c  (wersja 1332)
+@@ -11353,11 +11353,11 @@
+          dres.whatNext = Dis_StopHere;
+          break;
+-//--       case 0xC3:           /* REP RET */
+-//--          /* AMD K7/K8-specific optimisation; faster than vanilla RET */
+-//--          dis_ret(cb, 0);
+-//--          DIP("rep ret\n");
+-//--          break;
++      case 0xC3:           /* REP RET -- same as normal ret? */
++         dis_ret(0);
++         dres.whatNext = Dis_StopHere;
++         DIP("rep ret\n");
++         break;
+       default:
+          goto decode_failure;
This page took 0.185166 seconds and 4 git commands to generate.