diff --git a/riscv/processor.cc b/riscv/processor.cc index 22e654250d..1ffe4d5aa1 100644 --- a/riscv/processor.cc +++ b/riscv/processor.cc @@ -504,7 +504,7 @@ void state_t::reset(processor_t* const proc, reg_t max_isa) } const reg_t sstateen_mask = i == 0 ? sstateen0_mask : 0; - csrmap[CSR_SSTATEEN0 + i] = sstateen[i] = std::make_shared(proc, CSR_HSTATEEN0 + i, sstateen_mask, 0, i); + csrmap[CSR_SSTATEEN0 + i] = sstateen[i] = std::make_shared(proc, CSR_SSTATEEN0 + i, sstateen_mask, 0, i); } }