summaryrefslogtreecommitdiff
path: root/src/cpu/thread_context.hh
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/thread_context.hh
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/thread_context.hh')
-rw-r--r--src/cpu/thread_context.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpu/thread_context.hh b/src/cpu/thread_context.hh
index 1af029093..31fdb42c2 100644
--- a/src/cpu/thread_context.hh
+++ b/src/cpu/thread_context.hh
@@ -268,6 +268,9 @@ class ThreadContext
virtual void changeRegFileContext(TheISA::RegContextParam param,
TheISA::RegContextVal val) = 0;
+
+ /** function to compare two thread contexts (for debugging) */
+ static void compare(ThreadContext *one, ThreadContext *two);
};
/**