From e8e9f9731281e8c2ecb50a9aa318a65402cbee5c Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 16 Oct 2011 02:59:53 -0700 Subject: CPU: Make physPort and getPhysPort available in SE mode. --- src/cpu/thread_state.hh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/cpu/thread_state.hh') diff --git a/src/cpu/thread_state.hh b/src/cpu/thread_state.hh index 824579852..b7727f4ee 100644 --- a/src/cpu/thread_state.hh +++ b/src/cpu/thread_state.hh @@ -92,11 +92,11 @@ struct ThreadState { Tick readLastSuspend() { return lastSuspend; } + void connectPhysPort(); + #if FULL_SYSTEM void connectMemPorts(ThreadContext *tc); - void connectPhysPort(); - void connectVirtPort(ThreadContext *tc); void dumpFuncProfile(); @@ -109,10 +109,6 @@ struct ThreadState { TheISA::Kernel::Statistics *getKernelStats() { return kernelStats; } - FunctionalPort *getPhysPort() { return physPort; } - - void setPhysPort(FunctionalPort *port) { physPort = port; } - VirtualPort *getVirtPort() { return virtPort; } #else Process *getProcessPtr() { return process; } @@ -122,6 +118,10 @@ struct ThreadState { void setMemPort(TranslatingPort *_port) { port = _port; } #endif + FunctionalPort *getPhysPort() { return physPort; } + + void setPhysPort(FunctionalPort *port) { physPort = port; } + /** Reads the number of instructions functionally executed and * committed. */ @@ -186,10 +186,6 @@ struct ThreadState { TheISA::Kernel::Statistics *kernelStats; protected: - /** A functional port outgoing only for functional accesses to physical - * addresses.*/ - FunctionalPort *physPort; - /** A functional port, outgoing only, for functional accesse to virtual * addresses. */ VirtualPort *virtPort; @@ -199,6 +195,10 @@ struct ThreadState { Process *process; #endif + /** A functional port outgoing only for functional accesses to physical + * addresses.*/ + FunctionalPort *physPort; + public: /* * number of executed instructions, for matching with syscall trace -- cgit v1.2.3