Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The condition checks whether it's possible for a mode other than machine mode to take interrupts, but just because it can't, that doesn't mean we can never call this function while in another mode. In particular, this causes a crash if you run with S mode disabled but U mode enabled, then mret to U mode without NExt.
- Loading branch information