Skip to content

Commit

Permalink
Add sret case to insn_is_unconditional_branch
Browse files Browse the repository at this point in the history
Since sret is made to branchable in #443, the relevant checking function
which determine if the instruction is branchable also should be updated.
  • Loading branch information
ChinYikMing committed Jun 5, 2024
1 parent e0ba559 commit 83b80e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ FORCE_INLINE bool insn_is_unconditional_branch(uint8_t opcode)
case rv_insn_ebreak:
case rv_insn_jal:
case rv_insn_jalr:
case rv_insn_sret:
case rv_insn_mret:
#if RV32_HAS(EXT_C)
case rv_insn_cj:
Expand Down

0 comments on commit 83b80e7

Please sign in to comment.