mstateen3h
Upper 32 bits of Machine State Enable 3 Register, RV32 only
- Address
0x31F- Group
- Machine-level CSRs
- Privilege
MRW(privileged spec CSR listing, Machine State Enable Registers)- Access
- read/write; lowest privilege M (machine)
- Address range
- Standard read/write
- XLEN
- RV32 only
- Name in riscv-unified-db
- Upper 32 bits of Machine State Enable 3 Register
Privileged spec: Upper 32 bits of Machine State Enable 3 Register, RV32 only
Description
For RV64 harts, the Smstateen extension adds four new 64-bit CSRs at machine level: mstateen0 (Machine State
Enable 0), mstateen1, mstateen2, and mstateen3. For RV32, the registers listed above are 32-bit, and for the
machine-level CSRs there is a corresponding set of high-half CSRs for the upper 32 bits of each register:
mstateen0h, mstateen1h, mstateen2h, mstateen3h.
From riscv-unified-db, reformatted.
Fields
| Field | Bits | Type | Description |
|---|---|---|---|
SE3 | 31 | RW | hstateen3, hstateen3h, and sstateen3 access control. The SE3 bit in |
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/mstateen3h.yaml
- csrrw, csrrs, csrrc (Zicsr instructions that access CSRs)