cpu: Correctly call parent on switchOut() and takeOverFrom()
[gem5.git] / src / cpu / thread_state.cc
index eda62dad17ed14cc3715e1d89acdd164b638c962..d0f946989d04eb84583a7436c5a351c8b988b664 100644 (file)
@@ -122,6 +122,30 @@ ThreadState::initMemProxies(ThreadContext *tc)
     }
 }
 
+PortProxy &
+ThreadState::getPhysProxy()
+{
+    assert(FullSystem);
+    assert(physProxy != NULL);
+    return *physProxy;
+}
+
+FSTranslatingPortProxy &
+ThreadState::getVirtProxy()
+{
+    assert(FullSystem);
+    assert(virtProxy != NULL);
+    return *virtProxy;
+}
+
+SETranslatingPortProxy &
+ThreadState::getMemProxy()
+{
+    assert(!FullSystem);
+    assert(proxy != NULL);
+    return *proxy;
+}
+
 void
 ThreadState::profileClear()
 {