Fix checker bug.
authorKevin Lim <ktlim@umich.edu>
Mon, 9 Oct 2006 15:00:31 +0000 (11:00 -0400)
committerKevin Lim <ktlim@umich.edu>
Mon, 9 Oct 2006 15:00:31 +0000 (11:00 -0400)
src/cpu/checker/thread_context.hh:
    Checker's TC should only copy state, and not fully take over from the old context (prevents it from accidentally stealing the quiesce event).

--HG--
extra : convert_revision : 5760f9c5bae749f8d1df35e4c898df13e41b0224

src/cpu/checker/thread_context.hh

index 8c0186dae665fffc993f9d68bdd8649bcc49427a..b2806d40b9b55da5e01e8dfe020fca7b999fc2fd 100644 (file)
@@ -133,7 +133,7 @@ class CheckerThreadContext : public ThreadContext
     void takeOverFrom(ThreadContext *oldContext)
     {
         actualTC->takeOverFrom(oldContext);
-        checkerTC->takeOverFrom(oldContext);
+        checkerTC->copyState(oldContext);
     }
 
     void regStats(const std::string &name) { actualTC->regStats(name); }