CSR Bit Fields

RISC-V mhpmevent12h CSR Register

Address 0x72CPrivilege MachineAccess RW / RV32 high-half / 32-bitMachine counters and performance-monitoring CSRs

mhpmevent12h at 0x72C is the RV32 high-half CSR for bits 63:32 of mhpmevent12, provided with Sscofpmf.

Bit Overview
bit 3 = only bit 3; bits 12..11 = bits 12 down to 11
MSBLSB
Field Map

Understand mhpmevent12h By Bit Fields

0 key fields
Official Basis & Search Notes

mhpmevent12h is not an independent event selector; it is the RV32 access window for the upper 32 bits of mhpmevent12. It carries Sscofpmf OF and mode-filtering fields.

Sscofpmf standardizes mhpmevent12[63:58] as OF and xINH fields.
mhpmevent12h[31:26] correspond to those standardized upper bits.
The upper event-selector bits remain part of the platform-defined event encoding.

What To Check First When Reading This CSR

  • - mhpmevent12h is an RV32-only high-half CSR provided with Sscofpmf.
  • - Reading it is equivalent to reading bits 63:32 of mhpmevent12.
  • - If Supervisor mode is implemented, the OF bit can also be observed through the corresponding read-only shadow bit in scountovf.

Risk Checks Before Writing

  • - Preserve WPRI bits, and do not change EVENT_HI without knowing the platform event encoding.
  • - Writing mhpmevent12h changes the upper 32 bits of mhpmevent12, including OF and xINH controls.

Put It Back Into A Real Flow

1

On RV32, read mhpmevent12h to inspect the upper-half state of mhpmevent12.

2

Handle OF or mode-filtering bits as needed.

3

If Supervisor mode is implemented, check overflow state together with mhpmcounter12 readings and scountovf.

FAQ

Can mhpmevent12h be accessed from any privilege level?

No. The official CSR table lists mhpmevent12h as a Machine-mode MRW CSR; it exists only on RV32 when Sscofpmf is implemented.

Should mhpmevent12h and mhpmevent12 be written together?

On RV32, mhpmevent12h reads and writes bits 63:32 of mhpmevent12; accesses to the low-half CSR affect only bits 31:0.