projects
/
riscv-isa-sim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36cdc50
)
pass in arg to set_csr from csrrwi to indicate "immediate enabled"
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 13 Nov 2018 16:02:05 +0000
(16:02 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 13 Nov 2018 16:02:05 +0000
(16:02 +0000)
riscv/insns/csrrwi.h
patch
|
blob
|
history
diff --git
a/riscv/insns/csrrwi.h
b/riscv/insns/csrrwi.h
index 0daf68b23049d554e50d239878f3afde62bb1440..1b09d569412eab499de26e732acff8501aa0b425 100644
(file)
--- 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();