diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-03-12 17:32:43 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-03-12 17:32:43 -0700 |
commit | ea58df801f36605b462783a61b5266bdd9a40eb0 (patch) | |
tree | ec6c4736f29e9f2021a9e448946e0a0169639cc1 /riscv/insns/csrrw.h | |
parent | 9af855a28e7dc4009ad31312840ca6f9396d572e (diff) | |
download | spike-ea58df801f36605b462783a61b5266bdd9a40eb0.zip spike-ea58df801f36605b462783a61b5266bdd9a40eb0.tar.gz spike-ea58df801f36605b462783a61b5266bdd9a40eb0.tar.bz2 |
Update to new privileged spec
Sorry, everyone.
Diffstat (limited to 'riscv/insns/csrrw.h')
-rw-r--r-- | riscv/insns/csrrw.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/insns/csrrw.h b/riscv/insns/csrrw.h index b981665..9f2324f 100644 --- a/riscv/insns/csrrw.h +++ b/riscv/insns/csrrw.h @@ -1,4 +1,4 @@ int csr = validate_csr(insn.csr(), true); -reg_t old = p->get_pcr(csr); -p->set_pcr(csr, RS1); +reg_t old = p->get_csr(csr); +p->set_csr(csr, RS1); WRITE_RD(sext_xlen(old)); |