diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2011-10-16 05:06:39 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2011-10-16 05:06:39 -0700 |
commit | 3595b0c5a1a3e398a7efae932cd4175cd1ca3f0e (patch) | |
tree | 651320e1a0c7fab8755bab36ba8f49980c1e1e4c /src/cpu/thread_state.hh | |
parent | 79ba4b65957ed87907cacadc131f94628277b8db (diff) | |
download | gem5-3595b0c5a1a3e398a7efae932cd4175cd1ca3f0e.tar.xz |
SE/FS: Build/expose vport in SE mode.
Diffstat (limited to 'src/cpu/thread_state.hh')
-rw-r--r-- | src/cpu/thread_state.hh | 15 |
1 files changed, 8 insertions, 7 deletions
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; |