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
110000000010
31:20
00000
19:15
010
14:12
rd
11:7
1110011
6:0
Operands
-
rd
Destination register (integer)