From 6df80fc2170219e94f54de4063f39bcb806870dd Mon Sep 17 00:00:00 2001 From: Bill Traynor Date: Mon, 20 Mar 2023 11:02:17 -0400 Subject: Smrnmi: clarify NMIE only affects M-mode synchronous exception behavior Manually applying change #993 to clarify NMIE only affects M-mode synchronous exception behavior. --- src/rnmi.adoc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/rnmi.adoc b/src/rnmi.adoc index 406f214..16672f4 100644 --- a/src/rnmi.adoc +++ b/src/rnmi.adoc @@ -146,10 +146,7 @@ The RNMI handler can resume original execution using the new MNRET instruction, which restores the PC from `mnepc`, the privilege mode from `mnstatus`, and also sets `mnstatus`.NMIE, which re-enables interrupts. -If the hart encounters an exception while the `mnstatus`.NMIE bit is -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 +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 occurredwhile `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`). [NOTE] -- cgit v1.1