From 3595b0c5a1a3e398a7efae932cd4175cd1ca3f0e Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 16 Oct 2011 05:06:39 -0700 Subject: SE/FS: Build/expose vport in SE mode. --- src/cpu/thread_state.hh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/cpu/thread_state.hh') diff --git a/src/cpu/thread_state.hh b/src/cpu/thread_state.hh index b7727f4ee..8fd99f7cf 100644 --- a/src/cpu/thread_state.hh +++ b/src/cpu/thread_state.hh @@ -94,11 +94,11 @@ struct ThreadState { void connectPhysPort(); + void connectVirtPort(ThreadContext *tc); + #if FULL_SYSTEM void connectMemPorts(ThreadContext *tc); - void connectVirtPort(ThreadContext *tc); - void dumpFuncProfile(); EndQuiesceEvent *getQuiesceEvent() { return quiesceEvent; } @@ -108,8 +108,6 @@ struct ThreadState { void profileSample(); TheISA::Kernel::Statistics *getKernelStats() { return kernelStats; } - - VirtualPort *getVirtPort() { return virtPort; } #else Process *getProcessPtr() { return process; } @@ -118,6 +116,8 @@ struct ThreadState { void setMemPort(TranslatingPort *_port) { port = _port; } #endif + VirtualPort *getVirtPort() { return virtPort; } + FunctionalPort *getPhysPort() { return physPort; } void setPhysPort(FunctionalPort *port) { physPort = port; } @@ -186,15 +186,16 @@ struct ThreadState { TheISA::Kernel::Statistics *kernelStats; protected: - /** A functional port, outgoing only, for functional accesse to virtual - * addresses. */ - VirtualPort *virtPort; #else TranslatingPort *port; Process *process; #endif + /** A functional port, outgoing only, for functional accesse to virtual + * addresses. */ + VirtualPort *virtPort; + /** A functional port outgoing only for functional accesses to physical * addresses.*/ FunctionalPort *physPort; -- cgit v1.2.3