Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Smrnmi] Handling delegated exception when mnstatus.NMIE=0 #1565

Open
shubham-333 opened this issue Jul 25, 2024 · 2 comments
Open

[Smrnmi] Handling delegated exception when mnstatus.NMIE=0 #1565

shubham-333 opened this issue Jul 25, 2024 · 2 comments

Comments

@shubham-333
Copy link

If the hart encounters an exception while executing in M-mode with the mnstatus.NMIE bit clear, the actions taken are the same as if the exception had occurred while mnstatus.NMIE were set, except that the program counter is set to the RNMI exception trap handler address (rather than the address specified by mtvec).

Given mnstatus.NMIE=0:
If the hart encounters a delegated exception in S-mode, which is supposed to trap to S-mode. What should the program counter be set to?

  • address specified by stvec
  • RNMI exception trap handler address (handle in M-mode)
  • RNMI exception trap handler address (handle in S-mode)
@ved-rivos
Copy link
Collaborator

The quoted text applies to an exception while executing in M-mode.

@allenjbaum
Copy link

allenjbaum commented Jul 25, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants