Webcentive RISC-V Reference

mstateen0h

Upper 32 bits of Machine State Enable 0 Register, RV32 only

Address
0x31C
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 0 Register

Privileged spec: Upper 32 bits of Machine State Enable 0 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

FieldBitsTypeDescription
SE031RWhstateen0, hstateen0h, and sstateen0 access control.

The SE0 bit in mstateen0h controls access to the hstateen0, hstateen0h, and the sstateen0 CSRs.

ENVCFG30RWhenvcfg, henvcfgh, and senvcfg access control.

The ENVCFG bit in mstateen0h controls access to the henvcfg, henvcfgh, and the senvcfg CSRs.

CSRIND28RWsiselect, sireg*, vsiselect, and vsireg* access control.

The CSRIND bit in mstateen0h controls access to the siselect, sireg*, vsiselect, and the vsireg* CSRs provided by the Sscsrind extensions.

AIA27RWSsaia state access control.

The AIA bit in mstateen0h controls access to all state introduced by the Ssaia extension and is not controlled by either the CSRIND or the IMSIC bits.

IMSIC26RWIMSIC state access control.

The IMSIC bit in mstateen0h controls access to the IMSIC state, including CSRs stopei and vstopei, provided by the Ssaia extension.

CONTEXT25RWscontext and hcontext access control.

The CONTEXT bit in mstateen0h controls access to the scontext and hcontext CSRs provided by the Sdtrig extension.

P1P1324RWhedelegh access control.

The P1P13 bit in mstateen0h controls access to the hedelegh introduced by Privileged Specification Version 1.13.

SRMCFG23RWsrmcfg access control.

The SRMCFG bit in mstateen0h controls access to the srmcfg` CSR introduced by the Ssqosid Chapter 18 extension.

CTR22RWctr access control.

When Smstateen is implemented, the mstateen0.CTR bit controls access to CTR register state from privilege modes less privileged than M-mode.

Fields from riscv-unified-db; field types computed by IDL functions there are not shown.

Specification and related pages