summaryrefslogtreecommitdiff
path: root/src/cpu/simple_thread.hh
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2006-07-06 23:13:38 -0400
committerKevin Lim <ktlim@umich.edu>2006-07-06 23:13:38 -0400
commitfff75316771331ec3247cbd6e424a93b252a1e29 (patch)
tree0e2e96841ebd160ef0160dd3dc56aa0a56696b86 /src/cpu/simple_thread.hh
parentfbe3e22474184e537fe74f4e86277056026f0514 (diff)
downloadgem5-fff75316771331ec3247cbd6e424a93b252a1e29.tar.xz
Support serializing and unserializing in the O3 CPU. Also a few small fixes for draining/switching CPUs.
src/cpu/o3/commit_impl.hh: Fix to clear drainPending variable on call to resume. src/cpu/o3/cpu.cc: src/cpu/o3/cpu.hh: Support serializing and unserializing in the O3 CPU. src/cpu/o3/lsq_impl.hh: Be sure to say we have no stores to write back if the active thread list is empty. src/cpu/simple_thread.cc: src/cpu/simple_thread.hh: Slightly change how SimpleThread is used to copy from other ThreadContexts. --HG-- extra : convert_revision : 92a5109b3783a989d5b451036061ef82c56d3121
Diffstat (limited to 'src/cpu/simple_thread.hh')
-rw-r--r--src/cpu/simple_thread.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cpu/simple_thread.hh b/src/cpu/simple_thread.hh
index ff2639e10..d36853db4 100644
--- a/src/cpu/simple_thread.hh
+++ b/src/cpu/simple_thread.hh
@@ -121,7 +121,7 @@ class SimpleThread : public ThreadState
MemObject *memobj);
#endif
- SimpleThread(ThreadContext *oldContext);
+ SimpleThread();
virtual ~SimpleThread();
@@ -129,6 +129,8 @@ class SimpleThread : public ThreadState
void regStats(const std::string &name);
+ void copyTC(ThreadContext *context);
+
void copyState(ThreadContext *oldContext);
void serialize(std::ostream &os);