|
From: Petar J. <pe...@so...> - 2020-01-14 11:55:27
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=6eb5b451d31c3fb117bf61e0a62cf743dde83945 commit 6eb5b451d31c3fb117bf61e0a62cf743dde83945 Author: Petar Jovanovic <mip...@gm...> Date: Tue Jan 14 09:48:56 2020 +0000 mips: Fix BRSC and BALRSC instructions for nanoMIPS Basic blocks should be terminated after detecting branch instruction. Diff: --- VEX/priv/guest_nanomips_toIR.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/VEX/priv/guest_nanomips_toIR.c b/VEX/priv/guest_nanomips_toIR.c old mode 100644 new mode 100755 index ad099ed..2000896 --- a/VEX/priv/guest_nanomips_toIR.c +++ b/VEX/priv/guest_nanomips_toIR.c @@ -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; } } |