From dfa8cbeb06b7556753c26b97978924c1f4a24699 Mon Sep 17 00:00:00 2001 From: Brad Beckmann Date: Sun, 6 Feb 2011 22:14:19 -0800 Subject: m5: added work completed monitoring support --- src/sim/system.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/sim/system.cc') diff --git a/src/sim/system.cc b/src/sim/system.cc index 68b02272e..e9fd727f1 100644 --- a/src/sim/system.cc +++ b/src/sim/system.cc @@ -72,7 +72,10 @@ System::System(Params *p) pagePtr(0), nextPID(0), #endif - memoryMode(p->mem_mode), _params(p), + memoryMode(p->mem_mode), + workItemsBegin(0), + workItemsEnd(0), + _params(p), totalNumInsts(0), instEventQueue("system instruction-based event queue") { @@ -144,6 +147,8 @@ System::System(Params *p) // increment the number of running systms numSystemsRunning++; + + activeCpus.clear(); } System::~System() @@ -218,6 +223,8 @@ System::registerThreadContext(ThreadContext *tc, int assigned) remoteGDB[id] = rgdb; } + activeCpus.push_back(false); + return id; } -- cgit v1.2.3