RDINSTRET
Read Instructions Retired
RDINSTRET rd
Reads the count of instructions retired (completed).
Details
RDINSTRET reads the instret CSR, which counts the number of instructions retired by the processor. It is an assembler pseudoinstruction for CSRRS rd, instret, x0.
Pseudocode Operation
R[rd] = CSR[instret];
Example
RDINSTRET x10
Encoding
Binary Layout
11000000001000000010
31:12
rd
11:7
1110011
6:0
Operands
-
rd
Destination register (integer)