Skip to content

Commit 83b80e7

Browse files
committed
Add sret case to insn_is_unconditional_branch
Since sret is made to branchable in sysprog21#443, the relevant checking function which determine if the instruction is branchable also should be updated.
1 parent e0ba559 commit 83b80e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/emulate.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,7 @@ FORCE_INLINE bool insn_is_unconditional_branch(uint8_t opcode)
560560
case rv_insn_ebreak:
561561
case rv_insn_jal:
562562
case rv_insn_jalr:
563+
case rv_insn_sret:
563564
case rv_insn_mret:
564565
#if RV32_HAS(EXT_C)
565566
case rv_insn_cj:

0 commit comments

Comments
 (0)