if (write) {
p->set_csr(csr, old & ~(reg_t)insn.rs1());
}
-WRITE_RD(sext_xlen(old));
+WRITE_RD(sext_xlen(sv_reg_t(old)));
serialize();
bool write = insn.rs1() != 0;
int csr = validate_csr(insn.csr(), write);
-reg_t old = p->get_csr(csr);
+sv_reg_t old = sv_reg_t(p->get_csr(csr));
if (write) {
- p->set_csr(csr, old | RS1);
+ p->set_csr(csr, rv_or(old, RS1));
}
WRITE_RD(sext_xlen(old));
serialize();
if (write) {
p->set_csr(csr, old | insn.rs1());
}
-WRITE_RD(sext_xlen(old));
+WRITE_RD(sext_xlen(sv_reg_t(old)));
serialize();