]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
mips: Fix BRSC and BALRSC instructions for nanoMIPS
authorPetar Jovanovic <mips32r2@gmail.com>
Tue, 14 Jan 2020 09:48:56 +0000 (09:48 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Tue, 14 Jan 2020 09:48:56 +0000 (09:48 +0000)
Basic blocks should be terminated after detecting branch instruction.

VEX/priv/guest_nanomips_toIR.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index ad099ed..2000896
@@ -2547,8 +2547,10 @@ static void nano_pj(DisResult *dres, UInt cins)
             putIReg(rt, mkU32(guest_PC_curr_instr + 4));
             putPC(mkexpr(t1));
          }
+         dres->jk_StopHere = Ijk_Boring;
+         dres->whatNext = Dis_StopHere;
+         break;
       }
-      break;
    }
 }