← Home

minstret

Machine Instructions Retired Counter

Address: 0xB02 (2818) · Privilege: M · Length: 64 · Writable · Defined by: Sm · Indirect address: 66 · Indirect slot: 1

Counts the number of instructions retired by this hart from some arbitrary start point in the past.

Note: Instructions that cause synchronous exceptions, including `ecall` and `ebreak`, are not considered to retire and hence do not increment the `minstret` CSR.

Fields

63:5655:4847:4039:3231:2423:1615:87:0
COUNT
BitsFieldAliasDescriptionTypeReset
[63:0]COUNTInstructions retired counter. Aliased as `instret.COUNT`. Increments every time an instruction retires unless: * `mcountinhibit.IR` or its alias `scountinhibit.IR` is set * `minstretcfg.MINH` is set and the current privilege level is M * `minstretcfg.SINH` or its alias `instretcfg.SINH` is set and the current privilege level is (H)S * `minstretcfg.UINH` or its alias `instretcfg.UINH` is set and the current privilege level is U * `minstretcfg.VSINH` or its alias `instretcfg.VSINH` is set and the current privilege level is VS * `minstretcfg.VUINH` or its alias `instretcfg.VUINH` is set and the current privilege level is VU An instruction that causes an exception, notably including MRET/SRET, does not retire and does not cause `minstret.COUNT` to increment.RW-HUNDEFINED_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.