RISC-V ISA Explorer · System

Zicsr: CSR Access

Ratified 2019-04 · version 2.0.0

Instructions to read, write and atomically modify control and status registers, the interface to most machine state.

Typical use: Any code that reads or writes CSRs

Specification

Open Zicsr in the explorer

Dependencies

Required by

Instructions (6)

MnemonicNameEncodingMatchMask
CSRRCAtomic Read and Clear Bits in CSR-----------------011-----11100110x30730x707f
CSRRCIAtomic Read and Clear Bits in CSR with Immediate-----------------111-----11100110x70730x707f
CSRRSAtomic Read and Set Bits in CSR-----------------010-----11100110x20730x707f
CSRRSIAtomic Read and Set Bits in CSR with Immediate-----------------110-----11100110x60730x707f
CSRRWAtomic Read/Write CSR-----------------001-----11100110x10730x707f
CSRRWIAtomic Read/Write CSR Immediate-----------------101-----11100110x50730x707f