]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Use "orr r9,r9,r9" as the magic insn for IR injection on ARM and
authorJulian Seward <jseward@acm.org>
Mon, 3 Sep 2012 21:51:02 +0000 (21:51 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 3 Sep 2012 21:51:02 +0000 (21:51 +0000)
Thumb, since r13 is disallowed for many instructions in the Thumb
encoding.

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

include/valgrind.h

index 9ac0d45d24364ff5f17a2cec5bf14eb408836ba6..315da5b0fc8eab3d5063d3bb4a6393140d115371 100644 (file)
@@ -639,7 +639,7 @@ typedef
 #define VALGRIND_VEX_INJECT_IR()                                 \
  do {                                                            \
     __asm__ volatile(__SPECIAL_INSTRUCTION_PREAMBLE              \
-                     "orr r13, r13, r13\n\t"                     \
+                     "orr r9, r9, r9\n\t"                        \
                      : : : "cc", "memory"                        \
                     );                                           \
  } while (0)