Skip to content

Commit 5d7877b

Browse files
committed
[MIPS] Don't add a default branch type for jalr
1 parent 44a4945 commit 5d7877b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/arch_mips.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ class MipsArchitecture: public Architecture
337337
if (instr.operands[0].reg == REG_ZERO && instr.operands[1].reg == REG_RA)
338338
result.AddBranch(FunctionReturn, 0, nullptr, hasBranchDelay);
339339
else
340-
result.AddBranch(UnresolvedBranch, 0, nullptr, hasBranchDelay);
340+
result.delaySlots = 1;
341341
break;
342342

343343
case MIPS_BGEZAL:

0 commit comments

Comments
 (0)