From: Kevin Lim Date: Mon, 9 Oct 2006 15:00:31 +0000 (-0400) Subject: Fix checker bug. X-Git-Tag: m5_2.0_beta2~104^2~29 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6a2d6c0f83074fd5b18b868822629de5e408cb97;p=gem5.git Fix checker bug. 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 --- diff --git a/src/cpu/checker/thread_context.hh b/src/cpu/checker/thread_context.hh index 8c0186dae..b2806d40b 100644 --- a/src/cpu/checker/thread_context.hh +++ b/src/cpu/checker/thread_context.hh @@ -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); }