diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2011-10-16 02:59:53 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2011-10-16 02:59:53 -0700 |
commit | e8e9f9731281e8c2ecb50a9aa318a65402cbee5c (patch) | |
tree | 4fd7bd419960066fad691d13e08f43dd5faaa729 /src/cpu/thread_state.cc | |
parent | 85ca77d114f6c1bc3b90ce2faa02259aa6d825fe (diff) | |
download | gem5-e8e9f9731281e8c2ecb50a9aa318a65402cbee5c.tar.xz |
CPU: Make physPort and getPhysPort available in SE mode.
Diffstat (limited to 'src/cpu/thread_state.cc')
-rw-r--r-- | src/cpu/thread_state.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/cpu/thread_state.cc b/src/cpu/thread_state.cc index dedeccb3e..0abe2bf81 100644 --- a/src/cpu/thread_state.cc +++ b/src/cpu/thread_state.cc @@ -51,11 +51,11 @@ ThreadState::ThreadState(BaseCPU *cpu, ThreadID _tid, Process *_process) baseCpu(cpu), _threadId(_tid), lastActivate(0), lastSuspend(0), #if FULL_SYSTEM profile(NULL), profileNode(NULL), profilePC(0), quiesceEvent(NULL), - kernelStats(NULL), physPort(NULL), virtPort(NULL), + kernelStats(NULL), virtPort(NULL), #else port(NULL), process(_process), #endif - funcExeInst(0), storeCondFailures(0) + physPort(NULL), funcExeInst(0), storeCondFailures(0) { } @@ -104,14 +104,6 @@ ThreadState::unserialize(Checkpoint *cp, const std::string §ion) #endif } -#if FULL_SYSTEM -void -ThreadState::connectMemPorts(ThreadContext *tc) -{ - connectPhysPort(); - connectVirtPort(tc); -} - void ThreadState::connectPhysPort() { @@ -126,6 +118,14 @@ ThreadState::connectPhysPort() connectToMemFunc(physPort); } +#if FULL_SYSTEM +void +ThreadState::connectMemPorts(ThreadContext *tc) +{ + connectPhysPort(); + connectVirtPort(tc); +} + void ThreadState::connectVirtPort(ThreadContext *tc) { |