diff options
author | Scott Johnson <scott.johnson@arilinc.com> | 2021-03-08 21:57:00 -0800 |
---|---|---|
committer | Andrew Waterman <aswaterman@gmail.com> | 2021-09-08 07:59:02 -0700 |
commit | 96aed2f5745e2effc173dc6cd2d2d24fa0d49c2f (patch) | |
tree | 04c3c258ccf1f8b50055bf2e61136527f08eaa63 /riscv/csrs.h | |
parent | b3220fe329144b42d3ab4d5d0cf0b56c2975eb41 (diff) | |
download | spike-96aed2f5745e2effc173dc6cd2d2d24fa0d49c2f.zip spike-96aed2f5745e2effc173dc6cd2d2d24fa0d49c2f.tar.gz spike-96aed2f5745e2effc173dc6cd2d2d24fa0d49c2f.tar.bz2 |
Convert medeleg to csr_t family
Diffstat (limited to 'riscv/csrs.h')
-rw-r--r-- | riscv/csrs.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/riscv/csrs.h b/riscv/csrs.h index 75e9226..81fd5c3 100644 --- a/riscv/csrs.h +++ b/riscv/csrs.h @@ -358,4 +358,15 @@ class mideleg_csr_t: public basic_csr_t { }; +class medeleg_csr_t: public basic_csr_t { + public: + medeleg_csr_t(processor_t* const proc, const reg_t addr); + virtual void verify_permissions(insn_t insn, bool write) const override; + protected: + virtual bool unlogged_write(const reg_t val) noexcept override; + private: + const reg_t hypervisor_exceptions; +}; + + #endif |