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
| 3120 | 1915 | 1412 | 117 | 62 | 10 | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| csr | 00000 | 010 | rd | 11100 | 11 | ||||||||||||||||||||||||||
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.
| Field | Bits | riscv-opcodes name |
|---|---|---|
| csr | 31:20 | csr |
| rd | 11:7 | rd |
Description
Encoding only. riscv-opcodes lists csrr as a pseudo-op of csrrs: the same encoding as csrrs with the fixed fields shown above.