CSR Bit Fields

RISC-V mcyclecfgh CSR Register

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

mcyclecfgh at 0x721 is the Smcntrpmf-provided RV32 machine high-half CSR for bits 63:32 of mcyclecfg.

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

Understand mcyclecfgh By Bit Fields

0 key fields
Official Basis & Search Notes

mcyclecfgh is the RV32 high-half CSR for bits 63:32 of mcyclecfg, mainly carrying Smcntrpmf mode-filtering control bits.

Smcntrpmf defines mcyclecfg as a 64-bit register, with mcyclecfgh accessing the upper 32 bits on RV32.
mcyclecfgh[30:26] correspond to MINH/SINH/UINH/VSINH/VUINH in mcyclecfg[62:58].
WPRI bits must be preserved on writes.

What To Check First When Reading This CSR

  • - mcyclecfgh is an RV32-only high-half CSR; it should not be used as a separate CSR when XLEN=64.
  • - Reading it is equivalent to reading bits 63:32 of mcyclecfg.
  • - xINH bits for unimplemented associated privilege modes are read-only zero.

Risk Checks Before Writing

  • - Write only the high-half xINH bits that must change and preserve WPRI bits.
  • - Writing mcyclecfgh changes the upper 32 bits of mcyclecfg; avoid conflicting with full mcyclecfg write paths.

Put It Back Into A Real Flow

1

On RV32, read mcyclecfgh to observe the high-half configuration of mcyclecfg.

2

Adjust the required xINH bits.

3

Validate the filtering policy with mcycle count results.

FAQ

Can mcyclecfgh be accessed from any privilege level?

No. The official CSR table lists mcyclecfgh as a Machine mode CSR. Lower-privilege software may access the corresponding state only when a relevant standard extension provides an explicit delegation or permission mechanism. Direct CSR access with insufficient privilege, or to an unimplemented CSR, raises an illegal-instruction exception.

Does mcyclecfgh exist on RV64?

Not as a separate high-half CSR. RV64 accesses the full 64-bit configuration directly through mcyclecfg.