From 57f1f5de1139012a585a9e233d9eb3218b12c9f2 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 13 Nov 2018 16:02:05 +0000 Subject: [PATCH] pass in arg to set_csr from csrrwi to indicate "immediate enabled" --- riscv/insns/csrrwi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.30.2