Can mhpmevent8h be accessed from any privilege level?
No. The official CSR table lists it as a Machine-mode MRW CSR; direct access from a lower privilege level such as S or U raises an illegal-instruction exception.
mhpmevent8h at 0x728 is the RV32 high-half CSR for bits 63:32 of mhpmevent8, provided with Sscofpmf.
mhpmevent8h is not an independent event selector; it is the RV32 access window for the upper 32 bits of mhpmevent8. It carries Sscofpmf OF and mode-filtering fields.
On RV32, read mhpmevent8h to inspect the upper-half state of mhpmevent8.
Handle OF or mode-filtering bits as needed.
Check overflow state together with mhpmcounter8 readings and scountovf.
No. The official CSR table lists it as a Machine-mode MRW CSR; direct access from a lower privilege level such as S or U raises an illegal-instruction exception.
On RV32, handle them as halves of one 64-bit CSR and avoid one path changing the high half while another path changes the low half inconsistently.