From c3b19169fb150f7084edff3aad0e1d5dd2b48fc3 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Sat, 30 Apr 2016 20:43:00 -0700 Subject: [PATCH] Initialize mtvec to DEFAULT_MTVEC --- riscv/processor.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/riscv/processor.cc b/riscv/processor.cc index ccbbd16..f4c64ac 100644 --- a/riscv/processor.cc +++ b/riscv/processor.cc @@ -115,6 +115,7 @@ void state_t::reset() memset(this, 0, sizeof(*this)); prv = PRV_M; pc = DEFAULT_RSTVEC; + mtvec = DEFAULT_MTVEC; load_reservation = -1; } -- 2.30.2