csrrc
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 18 Oct 2018 22:23:06 +0000 (23:23 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 18 Oct 2018 22:23:06 +0000 (23:23 +0100)
riscv/insns/csrrc.h

index 0472d80efd5164b885d99d94f7a58d8359a26037..b82fcc52b371bdff14a516a8aa048a6c52b9877a 100644 (file)
@@ -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();