From 733dc842be471799cdbd610fd62355f651d8af96 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Thu, 16 Jan 2014 00:09:27 -0800 Subject: [PATCH] Initialize tohost and fromhost to zero Surprising we got away without doing this for so long --- riscv/processor.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/riscv/processor.cc b/riscv/processor.cc index 17b4181..067288c 100644 --- a/riscv/processor.cc +++ b/riscv/processor.cc @@ -47,12 +47,15 @@ void state_t::reset() XPR.reset(); FPR.reset(); - evec = 0; epc = 0; badvaddr = 0; - cause = 0; + evec = 0; + ptbr = 0; pcr_k0 = 0; pcr_k1 = 0; + cause = 0; + tohost = 0; + fromhost = 0; count = 0; compare = 0; fflags = 0; -- 2.30.2