diff options
-rw-r--r-- | riscv/csrs.cc | 2 | ||||
-rw-r--r-- | riscv/csrs.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/riscv/csrs.cc b/riscv/csrs.cc index f511b54..761a198 100644 --- a/riscv/csrs.cc +++ b/riscv/csrs.cc @@ -389,7 +389,7 @@ bool vsstatus_csr_t::unlogged_write(const reg_t val) noexcept { // implement class sstatus_proxy_csr_t -sstatus_proxy_csr_t::sstatus_proxy_csr_t(processor_t* const proc, const reg_t addr, csr_t_p mstatus): +sstatus_proxy_csr_t::sstatus_proxy_csr_t(processor_t* const proc, const reg_t addr, mstatus_csr_t_p mstatus): base_status_csr_t(proc, addr), mstatus(mstatus) { } diff --git a/riscv/csrs.h b/riscv/csrs.h index 1bbd8c6..c0f5771 100644 --- a/riscv/csrs.h +++ b/riscv/csrs.h @@ -251,7 +251,7 @@ class mstatush_csr_t: public csr_t { class sstatus_proxy_csr_t final: public base_status_csr_t { public: - sstatus_proxy_csr_t(processor_t* const proc, const reg_t addr, csr_t_p mstatus); + sstatus_proxy_csr_t(processor_t* const proc, const reg_t addr, mstatus_csr_t_p mstatus); reg_t read() const noexcept override { return mstatus->read() & sstatus_read_mask; @@ -260,7 +260,7 @@ class sstatus_proxy_csr_t final: public base_status_csr_t { protected: virtual bool unlogged_write(const reg_t val) noexcept override; private: - csr_t_p mstatus; + mstatus_csr_t_p mstatus; }; typedef std::shared_ptr<sstatus_proxy_csr_t> sstatus_proxy_csr_t_p; |