diff options
author | Scott Johnson <scott.johnson@arilinc.com> | 2021-09-29 09:30:42 -0700 |
---|---|---|
committer | Scott Johnson <scott.johnson@arilinc.com> | 2021-09-29 14:08:35 -0700 |
commit | 347ff31125bee0fadd8e02bbe7a13c672dcf74a5 (patch) | |
tree | ad6077ca4914f00b1de70f422dbaf3442f1fd2fe /riscv/csrs.h | |
parent | 52c23a28c519449a874cd7ea2ec0479b63a3b173 (diff) | |
download | spike-347ff31125bee0fadd8e02bbe7a13c672dcf74a5.zip spike-347ff31125bee0fadd8e02bbe7a13c672dcf74a5.tar.gz spike-347ff31125bee0fadd8e02bbe7a13c672dcf74a5.tar.bz2 |
Convert vxsat to csr_t
Adds commit log events for vxsat to many vector instructions.
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 b2f073a..6095b94 100644 --- a/riscv/csrs.h +++ b/riscv/csrs.h @@ -614,4 +614,15 @@ class sentropy_csr_t: public csr_t { }; +class vector_csr_t: public basic_csr_t { + public: + vector_csr_t(processor_t* const proc, const reg_t addr, const reg_t mask); + virtual void verify_permissions(insn_t insn, bool write) const override; + protected: + virtual bool unlogged_write(const reg_t val) noexcept override; + private: + reg_t mask; +}; + + #endif |