From 83b80e7e2c10faa80af06a8a5684333c9b24ad73 Mon Sep 17 00:00:00 2001 From: ChinYikMing Date: Wed, 5 Jun 2024 11:27:23 +0800 Subject: [PATCH] Add sret case to insn_is_unconditional_branch Since sret is made to branchable in #443, the relevant checking function which determine if the instruction is branchable also should be updated. --- src/emulate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/emulate.c b/src/emulate.c index 76a3b322..eb764651 100644 --- a/src/emulate.c +++ b/src/emulate.c @@ -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: