hstateen0h
Upper 32 bits of Hypervisor State Enable 0 Register, RV32 only
- Address
0x61C- Group
- Hypervisor and VS CSRs
- Privilege
HRW(privileged spec CSR listing, Hypervisor State Enable Registers)- Access
- read/write; lowest privilege H (hypervisor, including VS CSRs)
- Address range
- Standard read/write
- XLEN
- RV32 only
- Name in riscv-unified-db
- Upper 32 bits of Hypervisor State Enable 0 Register
Privileged spec: Upper 32 bits of Hypervisor State Enable 0 Register, RV32 only
Description
For RV64 harts, the Smstateen/Ssstateen extension adds four new 64-bit CSRs at machine level: mstateen0 (Machine State Enable 0),
mstateen1, mstateen2, and mstateen3. If supervisor mode is implemented, another four CSRs are defined at
supervisor level: sstateen0, sstateen1, sstateen2, and sstateen3. And if the hypervisor extension is implemented,
another set of CSRs is added: hstateen0, hstateen1, hstateen2, and hstateen3.
For RV32, the registers listed above are 32-bit, and for the machine-level and hypervisor CSRs there is a corresponding
set of high-half CSRs for the upper 32 bits of each register: mstateen0h, mstateen1h, mstateen2h, mstateen3h, hstateen0h,
hstateen1h, hstateen2h, and hstateen3h.
From riscv-unified-db, reformatted.
Fields
| Field | Bits | Type | Description |
|---|---|---|---|
SE0 | 31 | RW | sstateen0 access control. The SE0 bit in |
ENVCFG | 30 | RW | senvcfg access control. The ENVCFG bit in |
CSRIND | 28 | RW | siselect and sireg* access control. The CSRIND bit in |
AIA | 27 | RW | Ssaia state access control. The AIA bit in |
IMSIC | 26 | RW | IMSIC state access control. The IMSIC bit in Setting the IMSIC bit in |
CONTEXT | 25 | RW | scontext access control. The CONTEXT bit in |
CTR | 22 | RW | ctr access control. If the H extension is implemented and |
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/hstateen0h.yaml
- csrrw, csrrs, csrrc (Zicsr instructions that access CSRs)