From: Luke Kenneth Casson Leighton Date: Thu, 18 Oct 2018 22:23:06 +0000 (+0100) Subject: csrrc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=774562d5ec3de5cead1021146dd92060e0111992;p=riscv-isa-sim.git csrrc --- diff --git a/riscv/insns/csrrc.h b/riscv/insns/csrrc.h index 0472d80..b82fcc5 100644 --- a/riscv/insns/csrrc.h +++ b/riscv/insns/csrrc.h @@ -4,5 +4,5 @@ reg_t old = p->get_csr(csr); if (write) { p->set_csr(csr, old & ~RS1); } -WRITE_RD(sext_xlen(old)); +WRITE_RD(sext_xlen(sv_reg_t(old))); serialize();