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. The implementation of sret instruction is simply returning false for now, the improved implementation will be completed and tested in #438 since the sret instruction involves privilege mode changing.
- Loading branch information