projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a996cc
)
switching: turn on profiling after a switch if there's an event
author
Nathan Binkert
<nate@binkert.org>
Sat, 4 Aug 2007 23:11:11 +0000
(16:11 -0700)
committer
Nathan Binkert
<nate@binkert.org>
Sat, 4 Aug 2007 23:11:11 +0000
(16:11 -0700)
--HG--
extra : convert_revision :
689e5b85c47bb2aaceb7eb38c2a24a2e5b69376c
src/cpu/base.cc
patch
|
blob
|
history
diff --git
a/src/cpu/base.cc
b/src/cpu/base.cc
index ee409048b961d3c93bf095b0fc31077392fdfa49..a54ed93490006bae61a2341a511a6ffc4f59c874 100644
(file)
--- 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