ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

mnstatus

T1 riscv register register
Machine NMI Status
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRISC-V Privileged (Smrnmi)
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
PrivilegeM
ExtensionsSmrnmi

Summary

The mnstatus register tracks and controls the hart's current NMI operating state.

Syntax / Encoding

CSR 0x744 (M-mode, RW)

Bitfields (4)

BitsFieldDescription
12:11MNPPM-mode NMI Previous Privilege. Written by hardware in two cases: * Written with the prior nominal privilege level when entering M-mode NMI from an exception/interrupt. * Written with 0 when executing an mnret instruction to return from a double exception / NMI in M-mode. Can also be written by software without immed
9MNPELPM-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.
7MNPV*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 softwa
3NMIE*M-mode NMI Enable* Written by hardware in two cases: * Written with the value 0 when entering M-mode NMI. * Written with the value 0 when entering M-mode double trap. Written by software in one case only: * The NMIE is 0 on reset for boot code to initialize system to service NMIs. Once SW writes NMIE to 1, it cann