summaryrefslogtreecommitdiff
path: root/src/cpu/thread_state.hh
diff options
context:
space:
mode:
authorRon Dreslinski <rdreslin@umich.edu>2006-11-17 21:55:28 -0500
committerRon Dreslinski <rdreslin@umich.edu>2006-11-17 21:55:28 -0500
commitcd0b65508e3f9d9f72cd834aeccf9fd1f0349351 (patch)
treee92d97d22335627754de60a808183e2d00ea3c9c /src/cpu/thread_state.hh
parentdbdf2f14ae6b586efd31b73aa4548a38ecee263f (diff)
downloadgem5-cd0b65508e3f9d9f72cd834aeccf9fd1f0349351.tar.xz
Make an initialization pass for the thread context and set the [phys,virt]Port correctly
src/cpu/simple/atomic.cc: src/cpu/simple/timing.cc: Call the thread context initialization --HG-- extra : convert_revision : d7dc2a8b893dc670077b7f6150d4b710a1778620
Diffstat (limited to 'src/cpu/thread_state.hh')
-rw-r--r--src/cpu/thread_state.hh3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cpu/thread_state.hh b/src/cpu/thread_state.hh
index 0a0af8b71..183ddcd2b 100644
--- a/src/cpu/thread_state.hh
+++ b/src/cpu/thread_state.hh
@@ -141,12 +141,11 @@ struct ThreadState {
/** Sets the status of this thread. */
void setStatus(Status new_status) { _status = new_status; }
- protected:
+ public:
/** Gets a functional port from the memory object that's connected
* to the CPU. */
Port *getMemFuncPort();
- public:
/** Number of instructions committed. */
Counter numInst;
/** Stat for number instructions committed. */