Webcentive RISC-V Reference

csrr

Pseudo-op

Extension
Zicsr
XLEN
RV32 and RV64
Operand fields
csr, rd
Length
32-bit

Encoding

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

3120191514121176210
csr00000010rd1110011

Match 0x00002073, mask 0x000ff07f. Source: $pseudo_op rv_zicsr::csrrs csrr rd csr 19..15=0x0 14..12=2 6..2=0x1C 1..0=3 in riscv-opcodes/extensions/rv_zicsr.

FieldBitsriscv-opcodes name
csr31:20csr
rd11:7rd

Description

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

Specification and related pages