mcycleh
High-half machine Cycle Counter
High-half alias of mcycle.
Attributes
CSR Address |
0xb80 |
---|---|
Defining extension |
|
Length |
32-bit |
Privilege Mode |
M |
Fields
COUNT
- Location
-
mcycleh[31:0]
- Description
-
Alias of upper half of mcycle.COUNT.
- Type
RW-RH |
Read-Write Restricted with Hardware update Field is writable by software. Only certain values are legal. Writing an illegal value into the field is ignored, such that the field retains its prior state. 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.if (xlen() == 32) { return sw_write_mcycle({csr_value.COUNT[31:0], read_mcycle()[31:0]}); } else { return sw_write_mcycle(csr_value.COUNT); }