From bc5b666397b9dc3abd0012d31db061181062946e Mon Sep 17 00:00:00 2001 From: Yunsup Lee Date: Tue, 17 Mar 2015 04:33:17 -0700 Subject: [PATCH] bugfix, mbadaddr should be writable --- riscv/processor.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/riscv/processor.cc b/riscv/processor.cc index 335cbea..c2d5275 100644 --- a/riscv/processor.cc +++ b/riscv/processor.cc @@ -398,6 +398,7 @@ void processor_t::set_csr(int which, reg_t val) case CSR_MEPC: state.mepc = val; break; case CSR_MSCRATCH: state.mscratch = val; break; case CSR_MCAUSE: state.mcause = val; break; + case CSR_MBADADDR: state.mbadaddr = val; break; case CSR_SEND_IPI: sim->send_ipi(val); break; case CSR_TOHOST: if (state.tohost == 0) -- 2.30.2