mnstatus
Resumable NMI status
- Address
0x744- Group
- Machine-level CSRs
- Privilege
MRW(privileged spec CSR listing, Machine Non-Maskable Interrupt Handling)- Access
- read/write; lowest privilege M (machine)
- Address range
- Standard read/write
- Name in riscv-unified-db
- Machine NMI Status
Privileged spec: Resumable NMI status
Description
The mnstatus register tracks and controls the hart's current NMI operating state.
From riscv-unified-db, reformatted.
Fields
| Field | Bits | Type | Description |
|---|---|---|---|
MNPP | 12-11 | RW-H | M-mode NMI Previous Privilege. Written by hardware in two cases:
Can also be written by software without immediate side-effect. Affects execution in two cases:
|
MNPELP | 9 | RW-H | M-mode NMI Previous Expected Landing Pad state. Defined by the Zicfilp extension. Holds the previous Expected Landing Pad (ELP) state when entering M-mode NMI. |
MNPV | 7 | RW-H | Machine Previous NMI Virtualization mode Written with the prior virtualization mode when entering M-mode from an exception/interrupt. When returning via an MRET instruction, the virtualization mode becomes the value of MPV unless MPP=3, in which case the virtualization mode is always 0. Can also be written by software. |
NMIE | 3 | RW-H | M-mode NMI Enable Written by hardware in two cases:
Written by software in one case only:
Affects execution by:
|
Fields from riscv-unified-db; field types computed by IDL functions there are not shown.