diff options
author | Weiwei Li <liweiwei@iscas.ac.cn> | 2022-07-17 09:13:06 +0800 |
---|---|---|
committer | Weiwei Li <liweiwei@iscas.ac.cn> | 2022-07-17 09:13:06 +0800 |
commit | 61a2c0ee6306562e084b25e4734d6ae725c475b4 (patch) | |
tree | b8259cc8a4efcbd66f6b36acb6829b3db944c045 /riscv/csrs.h | |
parent | dd11aceaf6fb19c2e9ab549f1bcc3ae89ce1b735 (diff) | |
download | spike-61a2c0ee6306562e084b25e4734d6ae725c475b4.zip spike-61a2c0ee6306562e084b25e4734d6ae725c475b4.tar.gz spike-61a2c0ee6306562e084b25e4734d6ae725c475b4.tar.bz2 |
extract the progress of computing the inital value of mstatus into
separate function compute_mstatus_initial_value()
Diffstat (limited to 'riscv/csrs.h')
-rw-r--r-- | riscv/csrs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/riscv/csrs.h b/riscv/csrs.h index 500bde7..ea6d4d9 100644 --- a/riscv/csrs.h +++ b/riscv/csrs.h @@ -246,6 +246,7 @@ class mstatus_csr_t final: public base_status_csr_t { protected: virtual bool unlogged_write(const reg_t val) noexcept override; private: + reg_t compute_mstatus_initial_value() const noexcept; reg_t val; }; |