diff options
author | Scott Johnson <scott.johnson@arilinc.com> | 2021-09-28 16:43:05 -0700 |
---|---|---|
committer | Scott Johnson <scott.johnson@arilinc.com> | 2021-09-28 18:19:37 -0700 |
commit | 71faab7fa3922efc6f1a9fb1ecb4bca9093058e8 (patch) | |
tree | 0d4cdfa63ba41181290f2016844f12f5475a8f1a /riscv/csrs.h | |
parent | 3083b125d69fec064a29f467274a9af13b79698f (diff) | |
download | spike-71faab7fa3922efc6f1a9fb1ecb4bca9093058e8.zip spike-71faab7fa3922efc6f1a9fb1ecb4bca9093058e8.tar.gz spike-71faab7fa3922efc6f1a9fb1ecb4bca9093058e8.tar.bz2 |
Convert sentropy to csr_t
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 482064d..b2f073a 100644 --- a/riscv/csrs.h +++ b/riscv/csrs.h @@ -603,4 +603,15 @@ class composite_csr_t: public csr_t { const unsigned upper_lsb; }; + +class sentropy_csr_t: public csr_t { + public: + sentropy_csr_t(processor_t* const proc, const reg_t addr); + virtual void verify_permissions(insn_t insn, bool write) const override; + virtual reg_t read() const noexcept override; + protected: + virtual bool unlogged_write(const reg_t val) noexcept override; +}; + + #endif |