sstatus
Supervisor status register
- Address
0x100- Group
- Supervisor-level CSRs
- Privilege
SRW(privileged spec CSR listing, Supervisor Trap Setup)- Access
- read/write; lowest privilege S (supervisor)
- Address range
- Standard read/write
- Name in riscv-unified-db
- Supervisor Status
Privileged spec: Supervisor status register
Description
The sstatus register tracks and controls the hart's current operating state.
All fields in sstatus are aliases of the same field in mstatus.
From riscv-unified-db, reformatted.
Fields
| Field | Bits | Type | Description |
|---|---|---|---|
SD | RV32 31 / RV64 63 | RO-H | State Dirty Alias of |
UXL | 33-32 | RO | U-mode XLEN Alias of |
SPELP | 23 | RW-H | Previous Expected Landing Pad state Alias of |
MXR | 19 | RW | Make eXecutable Readable Alias of |
SUM | 18 | RW | permit Supervisor Memory Access Alias of |
XS | 16-15 | RO | Custom (X) extension context Status. Alias of |
FS | 14-13 | RW-H | Floating point context status. Alias of |
VS | 10-9 | RW-H | Vector context status. Alias of |
SPP | 8 | RW-H | S-mode Previous Privilege Alias of |
UBE | 6 | RO | U-mode Big Endian Alias of |
SPIE | 5 | RW-H | S-mode Previous Interrupt Enable Alias of |
SIE | 1 | RW-H | S-mode Interrupt Enable Alias of |
Fields from riscv-unified-db; field types computed by IDL functions there are not shown.
Specification and related pages
- The RISC-V Instruction Set Manual, Volume II: CSR listing (src/priv/csrs.adoc)
- riscv-opcodes csrs.csv
- riscv-unified-db: spec/std/isa/csr/sstatus.yaml
- csrrw, csrrs, csrrc (Zicsr instructions that access CSRs)