summaryrefslogtreecommitdiff
path: root/src/cpu/thread_state.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2011-10-16 05:06:39 -0700
committerGabe Black <gblack@eecs.umich.edu>2011-10-16 05:06:39 -0700
commit3595b0c5a1a3e398a7efae932cd4175cd1ca3f0e (patch)
tree651320e1a0c7fab8755bab36ba8f49980c1e1e4c /src/cpu/thread_state.hh
parent79ba4b65957ed87907cacadc131f94628277b8db (diff)
downloadgem5-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.hh15
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;