summaryrefslogtreecommitdiff
path: root/src/mem/ruby/profiler/Profiler.cc
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2014-03-01 23:35:21 -0600
committerNilay Vaish <nilay@cs.wisc.edu>2014-03-01 23:35:21 -0600
commita533f3f9831081625626f96f9434a00f3079e98e (patch)
treea83c2cd3c873bc4977be9d06305dfc43083367e8 /src/mem/ruby/profiler/Profiler.cc
parent53f697a6166a6fe2787882f3448e73a8ebb849aa (diff)
downloadgem5-a533f3f9831081625626f96f9434a00f3079e98e.tar.xz
ruby: profiler: statically allocate stats variable
Couple of users observed segmentation fault when the simulator tries to register the statistical variable m_IncompleteTimes. It seems that there is some problem with the initialization of these variables when allocated in the constructor.
Diffstat (limited to 'src/mem/ruby/profiler/Profiler.cc')
-rw-r--r--src/mem/ruby/profiler/Profiler.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mem/ruby/profiler/Profiler.cc b/src/mem/ruby/profiler/Profiler.cc
index 6f7da1eda..f078ef2c1 100644
--- a/src/mem/ruby/profiler/Profiler.cc
+++ b/src/mem/ruby/profiler/Profiler.cc
@@ -62,7 +62,6 @@ using namespace std;
using m5::stl_helpers::operator<<;
Profiler::Profiler(const RubySystemParams *p)
- : m_IncompleteTimes(MachineType_NUM)
{
m_hot_lines = p->hot_lines;
m_all_instructions = p->all_instructions;