← Home

mstateen1h

Upper 32 bits of Machine State Enable 1 Register

Address: 0x31D (797) · Privilege: M · Length: 32 · Writable · Defined by: RV32 and Smstateen

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

Fields

31:2423:1615:87:0
SE1—
BitsFieldAliasDescriptionTypeReset
[31]SE1mstateen1.SE1The SE1 bit in `mstateen1h` controls access to the `hstateen1`, `hstateen1h`, and the `sstateen1` CSRs.RW0

Software read

return $bits(CSR[mstateen1])[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.