diff options
Diffstat (limited to 'src/cpu/thread_state.cc')
-rw-r--r-- | src/cpu/thread_state.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/cpu/thread_state.cc b/src/cpu/thread_state.cc index 0abe2bf81..a0fd5d7a1 100644 --- a/src/cpu/thread_state.cc +++ b/src/cpu/thread_state.cc @@ -34,12 +34,12 @@ #include "cpu/thread_state.hh" #include "mem/port.hh" #include "mem/translating_port.hh" +#include "mem/vport.hh" #include "sim/serialize.hh" #if FULL_SYSTEM #include "arch/kernel_stats.hh" #include "cpu/quiesce_event.hh" -#include "mem/vport.hh" #endif #if FULL_SYSTEM @@ -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), virtPort(NULL), + kernelStats(NULL), #else port(NULL), process(_process), #endif - physPort(NULL), funcExeInst(0), storeCondFailures(0) + virtPort(NULL), physPort(NULL), funcExeInst(0), storeCondFailures(0) { } @@ -118,14 +118,6 @@ ThreadState::connectPhysPort() connectToMemFunc(physPort); } -#if FULL_SYSTEM -void -ThreadState::connectMemPorts(ThreadContext *tc) -{ - connectPhysPort(); - connectVirtPort(tc); -} - void ThreadState::connectVirtPort(ThreadContext *tc) { @@ -140,6 +132,14 @@ ThreadState::connectVirtPort(ThreadContext *tc) connectToMemFunc(virtPort); } +#if FULL_SYSTEM +void +ThreadState::connectMemPorts(ThreadContext *tc) +{ + connectPhysPort(); + connectVirtPort(tc); +} + void ThreadState::profileClear() { |