RISC-V ISA Explorer · Traps

Smstateen: M-Mode State Enable

Ratified 2024-03 · version 1.0.0

Lets M-mode withhold access to state added by other extensions, so unaware software cannot leak or corrupt it.

Typical use: Gate access to extension CSRs

Specification

Open Smstateen in the explorer

Instructions

No instruction encodings are listed for this extension in the catalogue.

Control and status registers (20)

NameAddressModeDescription
hstateen00x60cSHypervisor State Enable 0 Register
hstateen0h0x61cSUpper 32 bits of Hypervisor State Enable 0 Register
hstateen10x60dSHypervisor State Enable 1 Register
hstateen1h0x61dSUpper 32 bits of Hypervisor State Enable 1 Register
hstateen20x60eSHypervisor State Enable 2 Register
hstateen2h0x61eSUpper 32 bits of Hypervisor State Enable 2 Register
hstateen30x60fSHypervisor State Enable 3 Register
hstateen3h0x61fSUpper 32 bits of Hypervisor State Enable 3 Register
mstateen00x30cMMachine State Enable 0 Register
mstateen0h0x31cMUpper 32 bits of Machine State Enable 0 Register
mstateen10x30dMMachine State Enable 1 Register
mstateen1h0x31dMUpper 32 bits of Machine State Enable 1 Register
mstateen20x30eMMachine State Enable 2 Register
mstateen2h0x31eMUpper 32 bits of Machine State Enable 2 Register
mstateen30x30fMMachine State Enable 3 Register
mstateen3h0x31fMUpper 32 bits of Machine State Enable 3 Register
sstateen00x10cSSupervisor State Enable 0 Register
sstateen10x10dSSupervisor State Enable 1 Register
sstateen20x10eSSupervisor State Enable 2 Register
sstateen30x10fSSupervisor State Enable 3 Register