switching: turn on profiling after a switch if there's an event
authorNathan Binkert <nate@binkert.org>
Sat, 4 Aug 2007 23:11:11 +0000 (16:11 -0700)
committerNathan Binkert <nate@binkert.org>
Sat, 4 Aug 2007 23:11:11 +0000 (16:11 -0700)
--HG--
extra : convert_revision : 689e5b85c47bb2aaceb7eb38c2a24a2e5b69376c

src/cpu/base.cc

index ee409048b961d3c93bf095b0fc31077392fdfa49..a54ed93490006bae61a2341a511a6ffc4f59c874 100644 (file)
@@ -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