← Home

hstateen3h

Upper 32 bits of Hypervisor State Enable 3 Register

Address: 0x61F (1567) · Privilege: S · Length: 32 · Writable · Defined by: RV32 and H and Smstateen and Ssstateen

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`.

Fields

31:2423:1615:87:0
SE3—
BitsFieldAliasDescriptionTypeReset
[31]SE3hstateen3.SE3The SE3 bit in `hstateen3h` controls access to the `sstateen3` CSR.RWUNDEFINED_LEGAL

Software read

return CSR[hstateen3].sw_read()[63:32];

Version af3eaf9+cheriot.f635218

Data from the RISC-V Unified Database, copyright RISC-V International and contributors.

CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.

This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.