summaryrefslogtreecommitdiff
path: root/src/cpu/base.cc
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2007-11-08 10:46:41 -0500
committerAli Saidi <saidi@eecs.umich.edu>2007-11-08 10:46:41 -0500
commite41197a3f8e93a1c67dddccc96a54e6f560386b2 (patch)
treeedad4e900baa21dfa8c95fb2ae6586911e2c8447 /src/cpu/base.cc
parent17e83e7f8346a25a313e4fc58ed7008b46fd818f (diff)
downloadgem5-e41197a3f8e93a1c67dddccc96a54e6f560386b2.tar.xz
CPU: Add function to explictly compare thread contexts after copying.
--HG-- extra : convert_revision : 9b7af59a11202a91409aad7c427b7749cd1d2f12
Diffstat (limited to 'src/cpu/base.cc')
-rw-r--r--src/cpu/base.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cpu/base.cc b/src/cpu/base.cc
index 25bd3f893..7b04f5a90 100644
--- a/src/cpu/base.cc
+++ b/src/cpu/base.cc
@@ -334,7 +334,8 @@ BaseCPU::takeOverFrom(BaseCPU *oldCPU, Port *ic, Port *dc)
newTC->getProcessPtr()->replaceThreadContext(newTC, newTC->readCpuId());
#endif
-// TheISA::compareXCs(oldXC, newXC);
+ if (DTRACE(Context))
+ ThreadContext::compare(oldTC, newTC);
}
#if FULL_SYSTEM