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

Smrnmi

T1 riscv feature feature
Resumable Non-Maskable Interrupts
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon Scopev1.0.0 (ratified)
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db

Summary

The base machine-level architecture supports only unresumable non-maskable interrupts (UNMIs), where the NMI jumps to a handler in machine mode, overwriting the current mepc and mcause register values. If the hart had been executing machine-mode code in a trap handler, the previous values in mepc and mcause would not be recoverable and so execution is not generally resumable.

Syntax / Encoding

Smrnmi v1.0.0 (ratified)

Reference Notes

The base machine-level architecture supports only unresumable non-maskable interrupts (UNMIs),
where the NMI jumps to a handler in machine mode, overwriting the current `mepc` and `mcause`
register values.
If the hart had been executing machine-mode code in a trap handler, the previous values in `mepc`
and `mcause` would not be recoverable and so execution is not generally resumable.

The `Smrnmi` extension adds support for resumable non-maskable interrupts (RNMIs) to RISC-V.
The extension adds four new CSRs (`mnepc`, `mncause`, `mnstatus`, and `mnscratch`) to hold the
interrupted state, and one new instruction, `mnret`, to resume from the RNMI handler.