aboutsummaryrefslogtreecommitdiff
path: root/riscv/csrs.h
diff options
context:
space:
mode:
authorWeiwei Li <liweiwei@iscas.ac.cn>2022-07-17 09:13:06 +0800
committerWeiwei Li <liweiwei@iscas.ac.cn>2022-07-17 09:13:06 +0800
commit61a2c0ee6306562e084b25e4734d6ae725c475b4 (patch)
treeb8259cc8a4efcbd66f6b36acb6829b3db944c045 /riscv/csrs.h
parentdd11aceaf6fb19c2e9ab549f1bcc3ae89ce1b735 (diff)
downloadspike-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.h1
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;
};