Skip to contentSkip to conversation

Thumb blx broken

PATCH New Paul Brook 1 participant 1 message Nov 1, 2005

lore
Share & tools
lore

Paul Brook

author
#0 lore raw

PATCH 1/1 Thumb blx broken

The patch below fixes a bug in the decoding of the Thumb BLX instruction.

Paul

=== target-arm/translate.c
==================================================================

translate.c +1 -1
@@ -2035,7 +2035,7 @@
         gen_movl_reg_T1(s, 14);
         
         val += offset << 1;
-        if (insn & (1 << 11)) {
+        if (insn & (1 << 12)) {
             /* bl */
             gen_jmp(s, val);
         } else {