From 7c67c73a642794e2f95cb9b7f5b8377363adc0f2 Mon Sep 17 00:00:00 2001 From: Ahmed El-Shafiey Date: Wed, 19 Dec 2012 06:52:31 -0800 Subject: fixig more valgrind errors in CACTI due to uinitialized variables + fixing a bug in the interconect stats (initializing the n_mem_to_simt metric to zero) [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14843] --- src/gpuwattch/processor.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gpuwattch/processor.cc') diff --git a/src/gpuwattch/processor.cc b/src/gpuwattch/processor.cc index 1fb37c1..5dda9fc 100644 --- a/src/gpuwattch/processor.cc +++ b/src/gpuwattch/processor.cc @@ -64,6 +64,7 @@ Processor::Processor(ParseXML *XML_interface) * There is no point to have heterogeneous memory controller on chip, * thus McPAT only support homogeneous memory controllers. */ + rt_power.reset(); int i; double pppm_t[4] = {1,1,1,1}; l2_power=0; @@ -1019,7 +1020,6 @@ void Processor::set_proc_param() } - Processor::~Processor(){ while (!cores.empty()) { @@ -1058,3 +1058,5 @@ Processor::~Processor(){ delete flashcontroller; } }; + + -- cgit v1.3