RISC-V ISA Explorer · Counters & Profiling

Smcntrpmf: M-Mode Counter Filtering

Ratified 2023-08 · version 1.0.0

Stops the cycle and instret counters from counting in selected privilege modes, for cleaner measurements.

Typical use: Counting only selected privilege modes

Specification

Open Smcntrpmf in the explorer

Instructions

No instruction encodings are listed for this extension in the catalogue.

Control and status registers (4)

NameAddressModeDescription
mcyclecfg0x321MMachine Cycle Counter Configuration
mcyclecfgh0x721MMachine Cycle Counter Configuration High
minstretcfg0x322MMachine Instructions-Retired Counter Configuration
minstretcfgh0x722MMachine Instructions-Retired Counter Configuration High