Webcentive RISC-V Reference

rdinstret

Pseudo-op

Extension
Zicntr
XLEN
RV32 and RV64
Operand fields
rd
Length
32-bit

Encoding

listed in riscv-opcodes as a pseudo-op of csrrs

3120191514121176210
11000000001000000010rd1110011

Match 0xc0202073, mask 0xfffff07f. Source: $pseudo_op rv_zicsr::csrrs rdinstret rd 19..15=0 31..20=0xC02 14..12=2 6..2=0x1C 1..0=3 in riscv-opcodes/extensions/rv_zicntr.

FieldBitsriscv-opcodes name
rd11:7rd

Description

Encoding only. riscv-opcodes lists rdinstret as a pseudo-op of csrrs: the same encoding as csrrs with the fixed fields shown above.

Specification and related pages