diff options
author | Scott Johnson <scott.johnson@arilinc.com> | 2021-07-23 12:45:10 -0700 |
---|---|---|
committer | Andrew Waterman <aswaterman@gmail.com> | 2021-09-08 07:59:02 -0700 |
commit | 1ece34fd31784379c09b194ae77c24157f8474ff (patch) | |
tree | ef3b76f273a9b056677a09e7e809897cc269c9f1 /riscv/csrs.h | |
parent | 6b591e6197c77454ffec2a0865fab85ff4b5d5eb (diff) | |
download | spike-1ece34fd31784379c09b194ae77c24157f8474ff.zip spike-1ece34fd31784379c09b194ae77c24157f8474ff.tar.gz spike-1ece34fd31784379c09b194ae77c24157f8474ff.tar.bz2 |
Convert mcounteren to csr_t
Diffstat (limited to 'riscv/csrs.h')
-rw-r--r-- | riscv/csrs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/riscv/csrs.h b/riscv/csrs.h index 405d0f3..6cb60ff 100644 --- a/riscv/csrs.h +++ b/riscv/csrs.h @@ -382,4 +382,12 @@ class hstatus_csr_t: public basic_csr_t { }; +// Used for mcounteren, scounteren, hcounteren +class counteren_csr_t: public basic_csr_t { + public: + counteren_csr_t(processor_t* const proc, const reg_t addr); + protected: + virtual bool unlogged_write(const reg_t val) noexcept override; +}; + #endif |