Machine Instructions-Retired Counter Configuration
The `minstretcfg` CSR is a 64-bit machine-level register that configures privilege mode filtering for the `minstret` (Machine Instructions-Retired Counter). Each inhibit bit (xINH) disables counting of retired instructions in the associated privilege mode.
Field — Description MINH — If set, then counting of events in M-mode is inhibited. SINH — If set, then counting of events in S/HS-mode is inhibited. UINH — If set, then counting of events in U-mode is inhibited. VSINH — If set, then counting of events in VS-mode is inhibited. VUINH — If set, then counting of events in VU-mode is inhibited.
When all inhibit bits are clear, instruction retirement is counted in all privilege modes.
For each bit in 61:58, if the associated privilege mode is not implemented, the bit is read-only zero.
Bit 63 (OF) always reads as zero, indicating that the counter does not generate overflow interrupts.
Bits [57:0] are reserved (WPRI) and read as zero; writes are ignored.
For RV32 systems, the upper 32 bits of `minstretcfg` are accessible via the `minstretcfgh` CSR (0x722).
| 63:56 | 55:48 | 47:40 | 39:32 | 31:24 | 23:16 | 15:8 | 7:0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| — | MINH | SINH | UINH | VSINH | VUINH | — | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Bits | Field | Alias | Description | Type | Reset |
|---|---|---|---|---|---|
| [62] | MINH | If set, then counting of events in M-mode is inhibited. | RW | UNDEFINED_LEGAL | |
| [61] | SINH | If set, then counting of events in S/HS-mode is inhibited. | RW | UNDEFINED_LEGAL | |
| [60] | UINH | If set, then counting of events in U-mode is inhibited. | RW | UNDEFINED_LEGAL | |
| [59] | VSINH | If set, then counting of events in VS-mode is inhibited. | RW | UNDEFINED_LEGAL | |
| [58] | VUINH | If set, then counting of events in VU-mode is inhibited. | RW | UNDEFINED_LEGAL |
Version af3eaf9+cheriot.f635218
Data from the RISC-V Unified Database, copyright RISC-V International and contributors.
CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.
This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.