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.
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;
std::vector<Stats::Histogram *> m_InitialToForwardDelayHist;
std::vector<Stats::Histogram *> m_ForwardToFirstResponseDelayHist;
std::vector<Stats::Histogram *> m_FirstResponseToCompletionDelayHist;
- std::vector<Stats::Scalar> m_IncompleteTimes;
+ Stats::Scalar m_IncompleteTimes[MachineType_NUM];
//added by SS
bool m_hot_lines;