blob: 4e8bde96379935755ef87b32903e5aadd81a5227 (
plain)
1
2
3
4
5
6
7
8
|
bool write = insn.rs1() != 0;
int csr = validate_csr(insn.csr(), write);
reg_t old = p->get_csr(csr);
if (write) {
p->set_csr(csr, old | RS1);
}
WRITE_RD(sext_xlen(old));
serialize();
|