summaryrefslogtreecommitdiff
path: root/src/cpu/thread_state.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2011-10-16 02:59:53 -0700
committerGabe Black <gblack@eecs.umich.edu>2011-10-16 02:59:53 -0700
commite8e9f9731281e8c2ecb50a9aa318a65402cbee5c (patch)
tree4fd7bd419960066fad691d13e08f43dd5faaa729 /src/cpu/thread_state.hh
parent85ca77d114f6c1bc3b90ce2faa02259aa6d825fe (diff)
downloadgem5-e8e9f9731281e8c2ecb50a9aa318a65402cbee5c.tar.xz
CPU: Make physPort and getPhysPort available in SE mode.
Diffstat (limited to 'src/cpu/thread_state.hh')
-rw-r--r--src/cpu/thread_state.hh20
1 files changed, 10 insertions, 10 deletions
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