CSRRWI
CSR Read/Write Immediate
CSRRWI rd, csr, uimm
Updates a CSR using a 5-bit unsigned immediate (zimm) instead of a register.
Details
CSRRWI atomically reads CSR csr into rd, then writes the zero-extended 5-bit immediate to the CSR. If rd is x0, the read is skipped.