Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specify can_branch and decode the sret instruction
sret instruction is used for returning from a trap when trap occurs in S-mode level. Thus, the execution flow will not be sequential. During basic block translation, the sret instruction should be considered as can_branch instruction. Moreover, the existing system instruction decoder does not support decoding the sret instruction. Thus, the ir->opcode should be set correctly to support decoding the sret instruction.
- Loading branch information