minstreth
Machine Instructions Retired Counter
Upper half of 64-bit instructions retired counters.
See minstret for details.
Attributes
CSR Address |
0xb82 |
---|---|
Defining extension |
|
Length |
32-bit |
Privilege Mode |
M |
Fields
COUNT
- Location
-
minstreth[31:0]
- Description
-
Instructions retired counter
Upper half of minstret.
- Type
RW-H |
Read-Write with Hardware update Field is writable by software. Any value that fits in the field is acceptable. Hardware also updates the field without an explicit software write. |
- Reset value
-
UNDEFINED_LEGAL
- Software write
-
This field has special behavior when written by software (e.g., through csrrw).
When software tries to write
csr_value
, the field will be written with the return value of the function below.%%LINK%csr_field;mcycle.COUNT;CSR[mcycle].COUNT%% = {csr_value.COUNT[31:0], %%LINK%csr_field;minstret.COUNT;CSR[minstret].COUNT%%[31:0]}; return csr_value.COUNT;