From: Luke Kenneth Casson Leighton Date: Tue, 13 Nov 2018 16:02:05 +0000 (+0000) Subject: pass in arg to set_csr from csrrwi to indicate "immediate enabled" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=57f1f5de1139012a585a9e233d9eb3218b12c9f2;p=riscv-isa-sim.git pass in arg to set_csr from csrrwi to indicate "immediate enabled" --- diff --git a/riscv/insns/csrrwi.h b/riscv/insns/csrrwi.h index 0daf68b..1b09d56 100644 --- a/riscv/insns/csrrwi.h +++ b/riscv/insns/csrrwi.h @@ -1,6 +1,6 @@ fprintf(stderr, "csrrwi %lx\n", insn.csr()); int csr = validate_csr(insn.csr(), true); fprintf(stderr, "validated %x\n", csr); -reg_t old = p->set_csr(csr, insn.insn_t::rs1()); +reg_t old = p->set_csr(csr, insn.insn_t::rs1(), true); WRITE_RD(sext_xlen(sv_reg_t(old))); serialize();