hstateen0 is a hypervisor state-enable CSR. It is HS/M-side hypervisor state, not a VS supervisor CSR copy; guest access is governed by the H extension and relevant state-enable, AIA, Sstc, or Smcsrind rules.
hstateen0 address, access class, and width are checked against the official CSR tables: 0x60C, HRW, HSXLEN.
State-enable CSRs control lower-privilege or VM access to extension state; they do not affect M-mode access.
hstateen0 has official CSRIND, AIA, IMSIC, CONTEXT, ENVCFG, and related bits.
When writing, modify only officially defined fields; handle WARL, WLRL, WPRI, and reserved fields according to the official specification and implementation behavior.