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

--- Comment #1 from [email protected] ---
Previous patch forget to correct corresponding comment in code.

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..c6a5bc9 100644
--- a/valgrind-3.12.0/VEX/priv/guest_arm_toIR.c
+++ b/valgrind-3.12.0/VEX/priv/guest_arm_toIR.c
@@ -20578,10 +20578,10 @@ DisResult disInstr_THUMB_WRK (
           && rD != 15 && rN == 13 && imm5 <= 31 && how == 0) {
          valid = True;
       }
-      /* also allow "sub.w reg, sp, reg   lsl #N for N=0,1,2 or 3
+      /* also allow "sub.w reg, sp, reg   lsl #N for N=0,1,2,3 or 4
          (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