RISC-V Topic Guide

CSR Access

Learn how the Zicsr CSRRW/CSRRS/CSRRC and CSRRWI/CSRRSI/CSRRCI instructions atomically read and update CSRs, including CSR access permissions, conditional read/write rules, field side effects, and the privilege scope of common CSRs such as mstatus, mie, and fcsr.

CSRRWCSRRSCSRRCCSRRWICSRRSICSRRCImstatusmiefcsrCSR