diff options
author | Scott Johnson <scott.johnson@arilinc.com> | 2021-09-20 14:50:08 -0700 |
---|---|---|
committer | Scott Johnson <scott.johnson@arilinc.com> | 2021-09-25 23:50:54 -0700 |
commit | 3b3fbe6db65b2e7404b05cddd3b795cdf530398e (patch) | |
tree | abe4fb7edbc10a247efedcb5fc62c4d7a7255934 /riscv/csrs.h | |
parent | 25b0e3fb49544ba2ee9a9374d603567d0549b4ac (diff) | |
download | spike-3b3fbe6db65b2e7404b05cddd3b795cdf530398e.zip spike-3b3fbe6db65b2e7404b05cddd3b795cdf530398e.tar.gz spike-3b3fbe6db65b2e7404b05cddd3b795cdf530398e.tar.bz2 |
Convert hgatp to csr_t
Diffstat (limited to 'riscv/csrs.h')
-rw-r--r-- | riscv/csrs.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/riscv/csrs.h b/riscv/csrs.h index ff9d85e..64b4716 100644 --- a/riscv/csrs.h +++ b/riscv/csrs.h @@ -499,4 +499,14 @@ class hypervisor_csr_t: public basic_csr_t { virtual void verify_permissions(insn_t insn, bool write) const override; }; + +class hgatp_csr_t: public basic_csr_t { + public: + hgatp_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; +}; + + #endif |