https://bugs.kde.org/show_bug.cgi?id=379890

            Bug ID: 379890
           Summary: arm: unhandled instruction: 0xEBAD 0x1B05 (sub.w fp,
                    sp, r5, lsl #4)
           Product: valgrind
           Version: 3.12.0
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: vex
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

This patch fixed the problem:

diff --git a/valgrind-3.12.0/VEX/priv/guest_arm_toIR.c
b/valgrind-3.12.0/VEX/priv/guest_arm_toIR.c
index ef5a79b..adb876e 100644
--- a/valgrind-3.12.0/VEX/priv/guest_arm_toIR.c
+++ b/valgrind-3.12.0/VEX/priv/guest_arm_toIR.c
@@ -20581,7 +20581,7 @@ DisResult disInstr_THUMB_WRK (
       /* also allow "sub.w reg, sp, reg   lsl #N for N=0,1,2 or 3
          (T1) "SUB (SP minus register) */
       if (!valid && INSN0(8,5) == BITS4(1,1,0,1) // sub
-          && rD != 15 && rN == 13 && imm5 <= 3 && how == 0) {
+          && rD != 15 && rN == 13 && imm5 <= 4 && how == 0) {
          valid = True;
       }
       if (valid) {

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to