Does mstateen2h exist on RV64?
No. mstateen2h is the RV32 CSR for accessing the upper 32 bits of mstateen2.
mstateen2h (0x31E) is the RV32 M-mode high-half CSR for bits 63:32 of mstateen2.
mstateen2h exists only on RV32 as the access window for mstateen2 bits 63:32. Bit 31 maps mstateen2.SE2, letting M-mode control lower-privilege access to matching hstateen2/sstateen2 CSRs.
On RV32, read mstateen2h before initializing lower-privilege environment state to observe the upper 32 bits of mstateen2.
Modify only target fields and preserve all other bits.
When needed, read the CSR back and confirm the effect through later lower-privilege accesses, traps, or state updates.
No. mstateen2h is the RV32 CSR for accessing the upper 32 bits of mstateen2.
No. In the current manual, these bits are reserved unless a future standard defines a stateen meaning; undefined reserved bits read as zero.