summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2007-08-04 16:11:11 -0700
committerNathan Binkert <nate@binkert.org>2007-08-04 16:11:11 -0700
commitdf015f17a45b18302565c43d3790d787e1b54c42 (patch)
treec6fafcc9913af3f0e698a3368a5ede002850a4e4
parent7a996ccc98421b361f6dfd8fe6e949299152935b (diff)
downloadgem5-df015f17a45b18302565c43d3790d787e1b54c42.tar.xz
switching: turn on profiling after a switch if there's an event
--HG-- extra : convert_revision : 689e5b85c47bb2aaceb7eb38c2a24a2e5b69376c
-rw-r--r--src/cpu/base.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cpu/base.cc b/src/cpu/base.cc
index ee409048b..a54ed9349 100644
--- a/src/cpu/base.cc
+++ b/src/cpu/base.cc
@@ -343,9 +343,8 @@ BaseCPU::takeOverFrom(BaseCPU *oldCPU, Port *ic, Port *dc)
for (int i = 0; i < threadContexts.size(); ++i)
threadContexts[i]->profileClear();
- // The Sampler must take care of this!
-// if (profileEvent)
-// profileEvent->schedule(curTick);
+ if (profileEvent)
+ profileEvent->schedule(curTick);
#endif
// Connect new CPU to old CPU's memory only if new CPU isn't