aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Johnson <scott.johnson@arilinc.com>2021-09-20 14:38:45 -0700
committerScott Johnson <scott.johnson@arilinc.com>2021-09-25 23:50:53 -0700
commit25b0e3fb49544ba2ee9a9374d603567d0549b4ac (patch)
tree91911f2437e5323de47f822ce36102ba55af5214
parent53f810cd744b5ce912415038791eaee2836eec6f (diff)
downloadspike-25b0e3fb49544ba2ee9a9374d603567d0549b4ac.zip
spike-25b0e3fb49544ba2ee9a9374d603567d0549b4ac.tar.gz
spike-25b0e3fb49544ba2ee9a9374d603567d0549b4ac.tar.bz2
Convert hgeip to csr_t
-rw-r--r--riscv/processor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/processor.cc b/riscv/processor.cc
index 83e721a..db55d51 100644
--- a/riscv/processor.cc
+++ b/riscv/processor.cc
@@ -471,6 +471,7 @@ void state_t::reset(processor_t* const proc, reg_t max_isa)
| HSTATUS_HU | HSTATUS_SPVP | HSTATUS_SPV | HSTATUS_GVA;
csrmap[CSR_HSTATUS] = hstatus = std::make_shared<masked_csr_t>(proc, CSR_HSTATUS, hstatus_mask, hstatus_init);
csrmap[CSR_HGEIE] = std::make_shared<const_csr_t>(proc, CSR_HGEIE, 0);
+ csrmap[CSR_HGEIP] = std::make_shared<const_csr_t>(proc, CSR_HGEIP, 0);
csrmap[CSR_HIDELEG] = hideleg = std::make_shared<masked_csr_t>(proc, CSR_HIDELEG, MIP_VS_MASK, 0);
const reg_t hedeleg_mask =
(1 << CAUSE_MISALIGNED_FETCH) |
@@ -1190,7 +1191,6 @@ reg_t processor_t::get_csr(int which, insn_t insn, bool write, bool peek)
require_privilege(PRV_M);
ret(state.hgatp);
}
- case CSR_HGEIP: ret(0);
case CSR_TSELECT: ret(state.tselect);
case CSR_TDATA1:
if (state.tselect < state.num_triggers) {