From 5652b9dd6298c7b61fe80bc2a508bbd3c9e5c5ef Mon Sep 17 00:00:00 2001 From: Scott Johnson Date: Thu, 24 Oct 2019 13:48:02 -0700 Subject: Initialize histogram_enabled and log_commits_enabled in constructor (#354) Otherwise they are left uninitialized and causing bizarre reproducibility problems in my application. --- riscv/processor.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/riscv/processor.cc b/riscv/processor.cc index 5f956a1..00d36bc 100644 --- a/riscv/processor.cc +++ b/riscv/processor.cc @@ -23,6 +23,7 @@ processor_t::processor_t(const char* isa, const char* varch, simif_t* sim, uint32_t id, bool halt_on_reset) : debug(false), halt_request(false), sim(sim), ext(NULL), id(id), + histogram_enabled(false), log_commits_enabled(false), halt_on_reset(halt_on_reset), last_pc(1), executions(1) { VU.p = this; -- cgit v1.1