diff options
author | Scott Johnson <scott.johnson@arilinc.com> | 2021-09-29 12:44:24 -0700 |
---|---|---|
committer | Scott Johnson <scott.johnson@arilinc.com> | 2021-09-29 14:31:52 -0700 |
commit | 72a6f9fac8f3c058d72af54a8554ee6fab2627ec (patch) | |
tree | c05152e49d35fadc9337c1ac6708da1b78401190 /riscv/csrs.h | |
parent | 347ff31125bee0fadd8e02bbe7a13c672dcf74a5 (diff) | |
download | spike-72a6f9fac8f3c058d72af54a8554ee6fab2627ec.zip spike-72a6f9fac8f3c058d72af54a8554ee6fab2627ec.tar.gz spike-72a6f9fac8f3c058d72af54a8554ee6fab2627ec.tar.bz2 |
Convert vstart to csr_t
Adds commit log events for vstart to many vector instructions.
Diffstat (limited to 'riscv/csrs.h')
-rw-r--r-- | riscv/csrs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/riscv/csrs.h b/riscv/csrs.h index 6095b94..ff84246 100644 --- a/riscv/csrs.h +++ b/riscv/csrs.h @@ -618,11 +618,16 @@ 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; + // Write without regard to mask, and without touching mstatus.VS + void write_raw(const reg_t val) noexcept; protected: virtual bool unlogged_write(const reg_t val) noexcept override; private: reg_t mask; }; +typedef std::shared_ptr<vector_csr_t> vector_csr_t_p; + + #endif |