From: Andrew Waterman Date: Thu, 16 Jan 2014 08:09:27 +0000 (-0800) Subject: Initialize tohost and fromhost to zero X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=733dc842be471799cdbd610fd62355f651d8af96;p=riscv-isa-sim.git Initialize tohost and fromhost to zero Surprising we got away without doing this for so long --- 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;