projects
/
riscv-isa-sim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Instructions are no longer member functions
[riscv-isa-sim.git]
/
riscv
/
insns
/
setpcr.h
diff --git
a/riscv/insns/setpcr.h
b/riscv/insns/setpcr.h
index d645626761ea12caee6ca38d91a8eee300be0968..4a25d80bef86ef68835d2356e448a7c34043f4fc 100644
(file)
--- a/
riscv/insns/setpcr.h
+++ b/
riscv/insns/setpcr.h
@@
-1,4
+1,2
@@
require_supervisor;
-reg_t temp = get_pcr(insn.rtype.rs1);
-set_pcr(insn.rtype.rs1, temp | SIMM);
-RD = temp;
+RD = p->set_pcr(insn.rtype.rs1, p->get_pcr(insn.rtype.rs1) | SIMM);