Webcentive RISC-V Reference

csrc

Pseudo-op

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

Encoding

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

3120191514121176210
csrrs1011000001110011

Match 0x00003073, mask 0x00007fff. Source: $pseudo_op rv_zicsr::csrrc csrc rs1 csr 14..12=3 11..7=0x0 6..2=0x1C 1..0=3 in riscv-opcodes/extensions/rv_zicsr.

FieldBitsriscv-opcodes name
csr31:20csr
rs119:15rs1

Description

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

Specification and related pages