Can mhpmevent7h 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.
mhpmevent7h at 0x727 is the RV32 high-half CSR for bits 63:32 of mhpmevent7, provided with Sscofpmf.
mhpmevent7h is not an independent event selector; it is the RV32 access window for the upper 32 bits of mhpmevent7. It carries Sscofpmf OF and mode-filtering fields.
On RV32, read mhpmevent7h to inspect the upper-half state of mhpmevent7.
Handle OF or mode-filtering bits as needed.
Check overflow state together with mhpmcounter7 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.