TheISA::Kernel::Statistics *getKernelStats()
{ return actualTC->getKernelStats(); }
- FunctionalPort *getPhysPort() { return actualTC->getPhysPort(); }
-
VirtualPort *getVirtPort()
{ return actualTC->getVirtPort(); }
#else
Process *getProcessPtr() { return actualTC->getProcessPtr(); }
#endif
+ FunctionalPort *getPhysPort() { return actualTC->getPhysPort(); }
+
Status status() const { return actualTC->status(); }
void setStatus(Status new_status)
TheISA::Kernel::Statistics *getKernelStats()
{ return thread->kernelStats; }
- FunctionalPort *getPhysPort() { return thread->getPhysPort(); }
-
VirtualPort *getVirtPort();
void connectMemPorts(ThreadContext *tc)
Process *getProcessPtr() { return thread->getProcessPtr(); }
#endif
+ FunctionalPort *getPhysPort() { return thread->getPhysPort(); }
+
/** Returns this thread's status. */
Status status() const { return thread->status(); }
virtual TheISA::Kernel::Statistics *getKernelStats()
{ return thread->kernelStats; }
- virtual FunctionalPort *getPhysPort() { return thread->getPhysPort(); }
-
virtual VirtualPort *getVirtPort();
virtual void connectMemPorts(ThreadContext *tc) { thread->connectMemPorts(tc); }
/** Returns a pointer to this thread's process. */
virtual Process *getProcessPtr() { return thread->getProcessPtr(); }
#endif
+
+ virtual FunctionalPort *getPhysPort() { return thread->getPhysPort(); }
+
/** Returns this thread's status. */
virtual Status status() const { return thread->status(); }
TheISA::Kernel::Statistics *getKernelStats()
{ return thread->getKernelStats(); }
- FunctionalPort *getPhysPort() { return thread->getPhysPort(); }
-
VirtualPort *getVirtPort()
{ return thread->getVirtPort(); }
#else
Process *getProcessPtr() { return thread->getProcessPtr(); }
#endif
+ FunctionalPort *getPhysPort() { return thread->getPhysPort(); }
+
Status status() const { return thread->status(); }
void setStatus(Status new_status);
SimpleThread::~SimpleThread()
{
-#if FULL_SYSTEM
delete physPort;
+#if FULL_SYSTEM
delete virtPort;
#endif
delete tc;
System *getSystemPtr() { return system; }
#if FULL_SYSTEM
- FunctionalPort *getPhysPort() { return physPort; }
-
/** Return a virtual port. This port cannot be cached locally in an object.
* After a CPU switch it may point to the wrong memory object which could
* mean stale data.
VirtualPort *getVirtPort() { return virtPort; }
#endif
+ FunctionalPort *getPhysPort() { return physPort; }
+
Status status() const { return _status; }
void setStatus(Status newStatus) { _status = newStatus; }
#if FULL_SYSTEM
virtual TheISA::Kernel::Statistics *getKernelStats() = 0;
- virtual FunctionalPort *getPhysPort() = 0;
-
virtual VirtualPort *getVirtPort() = 0;
virtual void connectMemPorts(ThreadContext *tc) = 0;
virtual Process *getProcessPtr() = 0;
#endif
+ virtual FunctionalPort *getPhysPort() = 0;
+
virtual Status status() const = 0;
virtual void setStatus(Status new_status) = 0;
TheISA::Kernel::Statistics *getKernelStats()
{ return actualTC->getKernelStats(); }
- FunctionalPort *getPhysPort() { return actualTC->getPhysPort(); }
-
VirtualPort *getVirtPort() { return actualTC->getVirtPort(); }
void connectMemPorts(ThreadContext *tc) { actualTC->connectMemPorts(tc); }
Process *getProcessPtr() { return actualTC->getProcessPtr(); }
#endif
+ FunctionalPort *getPhysPort() { return actualTC->getPhysPort(); }
+
Status status() const { return actualTC->status(); }
void setStatus(Status new_status) { actualTC->setStatus(new_status); }
baseCpu(cpu), _threadId(_tid), lastActivate(0), lastSuspend(0),
#if FULL_SYSTEM
profile(NULL), profileNode(NULL), profilePC(0), quiesceEvent(NULL),
- kernelStats(NULL), physPort(NULL), virtPort(NULL),
+ kernelStats(NULL), virtPort(NULL),
#else
port(NULL), process(_process),
#endif
- funcExeInst(0), storeCondFailures(0)
+ physPort(NULL), funcExeInst(0), storeCondFailures(0)
{
}
#endif
}
-#if FULL_SYSTEM
-void
-ThreadState::connectMemPorts(ThreadContext *tc)
-{
- connectPhysPort();
- connectVirtPort(tc);
-}
-
void
ThreadState::connectPhysPort()
{
connectToMemFunc(physPort);
}
+#if FULL_SYSTEM
+void
+ThreadState::connectMemPorts(ThreadContext *tc)
+{
+ connectPhysPort();
+ connectVirtPort(tc);
+}
+
void
ThreadState::connectVirtPort(ThreadContext *tc)
{
Tick readLastSuspend() { return lastSuspend; }
+ void connectPhysPort();
+
#if FULL_SYSTEM
void connectMemPorts(ThreadContext *tc);
- void connectPhysPort();
-
void connectVirtPort(ThreadContext *tc);
void dumpFuncProfile();
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; }
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.
*/
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;
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