mstatush
Upper 32 bits of mstatus, RV32 only
- Address
0x310- Group
- Machine-level CSRs
- Privilege
MRW(privileged spec CSR listing, Machine Trap Setup)- Access
- read/write; lowest privilege M (machine)
- Address range
- Standard read/write
- XLEN
- RV32 only
- Name in riscv-unified-db
- Machine Status High
Privileged spec: Upper 32 bits of mstatus, RV32 only
Description
The mstatus register tracks and controls the hart's current operating state.
From riscv-unified-db, reformatted.
Fields
| Field | Bits | Type | Description |
|---|---|---|---|
MDT | 10 | RW-H | see |
MPELP | 9 | RW-H | see |
MPV | 7 | RW-H | see |
GVA | 6 | RW-H | see |
MBE | 5 | see | |
SBE | 4 | see |
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 csrs32.csv
- riscv-unified-db: spec/std/isa/csr/mstatush.yaml
- csrrw, csrrs, csrrc (Zicsr instructions that access CSRs)