CSRRC
Control Status Register Read and Clear
CSRRC rd, csr, rs1
Reads the old value of the CSR, then clears bits in the CSR based on the mask in rs1.
Details
CSRRC atomically reads CSR csr into rd, then clears the bits in the CSR that correspond to bits set in rs1. If rs1 is x0, no bits are modified.