diff options
author | Weiwei Li <liweiwei@iscas.ac.cn> | 2022-07-08 20:53:55 +0800 |
---|---|---|
committer | Weiwei Li <liweiwei@iscas.ac.cn> | 2022-07-14 10:50:42 +0800 |
commit | dd11aceaf6fb19c2e9ab549f1bcc3ae89ce1b735 (patch) | |
tree | b1d432d970c826b29d3d5237f9890b19fe382999 /riscv/processor.cc | |
parent | e8f5ce062b755a1c76eb02bc98adefbc64183cd3 (diff) | |
download | spike-dd11aceaf6fb19c2e9ab549f1bcc3ae89ce1b735.zip spike-dd11aceaf6fb19c2e9ab549f1bcc3ae89ce1b735.tar.gz spike-dd11aceaf6fb19c2e9ab549f1bcc3ae89ce1b735.tar.bz2 |
add support for mconfigptr csr: it's hardwired to zero currently
Diffstat (limited to 'riscv/processor.cc')
-rw-r--r-- | riscv/processor.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/processor.cc b/riscv/processor.cc index 4b0b330..92f4b41 100644 --- a/riscv/processor.cc +++ b/riscv/processor.cc @@ -385,7 +385,7 @@ void state_t::reset(processor_t* const proc, reg_t max_isa) csrmap[CSR_MIMPID] = std::make_shared<const_csr_t>(proc, CSR_MIMPID, 0); csrmap[CSR_MVENDORID] = std::make_shared<const_csr_t>(proc, CSR_MVENDORID, 0); csrmap[CSR_MHARTID] = std::make_shared<const_csr_t>(proc, CSR_MHARTID, proc->get_id()); - + csrmap[CSR_MCONFIGPTR] = std::make_shared<const_csr_t>(proc, CSR_MCONFIGPTR, 0); const reg_t menvcfg_mask = (proc->extension_enabled(EXT_ZICBOM) ? MENVCFG_CBCFE | MENVCFG_CBIE : 0) | (proc->extension_enabled(EXT_ZICBOZ) ? MENVCFG_CBZE : 0) | (proc->extension_enabled(EXT_SVPBMT) ? MENVCFG_PBMTE : 0); |