diff options
author | Andrew Waterman <andrew@sifive.com> | 2018-02-22 15:19:26 -0800 |
---|---|---|
committer | Andrew Waterman <aswaterman@gmail.com> | 2018-03-03 13:47:54 -0600 |
commit | 4299874ad4b07ef457776513a64e5b2397a6a75e (patch) | |
tree | 66e952f79375892d256a0f9c0d985f2f109da496 /riscv/insns/csrrc.h | |
parent | e91d3a441e9391054eecd371922649b7f540cc52 (diff) | |
download | riscv-isa-sim-4299874ad4b07ef457776513a64e5b2397a6a75e.zip riscv-isa-sim-4299874ad4b07ef457776513a64e5b2397a6a75e.tar.gz riscv-isa-sim-4299874ad4b07ef457776513a64e5b2397a6a75e.tar.bz2 |
Implement clearing-misa.C-while-PC-is-misaligned proposal
See https://github.com/riscv/riscv-isa-manual/pull/139
Not adopted yet, but I'm putting the implementation here for reference.
Diffstat (limited to 'riscv/insns/csrrc.h')
-rw-r--r-- | riscv/insns/csrrc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/riscv/insns/csrrc.h b/riscv/insns/csrrc.h index eae91fe..0472d80 100644 --- a/riscv/insns/csrrc.h +++ b/riscv/insns/csrrc.h @@ -5,3 +5,4 @@ if (write) { p->set_csr(csr, old & ~RS1); } WRITE_RD(sext_xlen(old)); +serialize(); |