diff options
author | Scott Johnson <scott.johnson@arilinc.com> | 2022-07-13 09:01:15 -0700 |
---|---|---|
committer | Scott Johnson <scott.johnson@arilinc.com> | 2022-07-13 18:57:55 -0700 |
commit | 00c38fdb95dff4e18ed75361da03436075a03b3a (patch) | |
tree | 7b0d038db1a7c0cea11562d152ff99dcd96ff714 /riscv/csrs.h | |
parent | a3d112d6f29870249df1080c5c610291dbe94442 (diff) | |
download | spike-00c38fdb95dff4e18ed75361da03436075a03b3a.zip spike-00c38fdb95dff4e18ed75361da03436075a03b3a.tar.gz spike-00c38fdb95dff4e18ed75361da03436075a03b3a.tar.bz2 |
Remove unnecessary mask from rv32_high_csr_t constructor
Diffstat (limited to 'riscv/csrs.h')
-rw-r--r-- | riscv/csrs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/csrs.h b/riscv/csrs.h index bde31da..7b1f87c 100644 --- a/riscv/csrs.h +++ b/riscv/csrs.h @@ -251,14 +251,14 @@ typedef std::shared_ptr<mstatus_csr_t> mstatus_csr_t_p; class rv32_high_csr_t: public csr_t { public: - rv32_high_csr_t(processor_t* const proc, const reg_t addr, const reg_t mask, csr_t_p orig); + rv32_high_csr_t(processor_t* const proc, const reg_t addr, csr_t_p orig); virtual reg_t read() const noexcept override; virtual void verify_permissions(insn_t insn, bool write) const override; protected: virtual bool unlogged_write(const reg_t val) noexcept override; private: csr_t_p orig; - const reg_t mask; + const reg_t mask = -1; }; class sstatus_proxy_csr_t final: public base_status_csr_t { |