risc-v

Definition

csrrw (RISC-V)

Atomically reads a control and status register and writes a new value to it.

csrrw rd, csr, rs1

The old CSR value is written to rd.