Set progress_interval in terms of CPU cycles.
[gem5.git] / src / cpu / simple_thread.cc
index e07d6e7c1e42cb8b1ae1e20644a267d855b25995..13d0e2e291ace750531303b190244444257eb617 100644 (file)
@@ -104,25 +104,6 @@ SimpleThread::SimpleThread(BaseCPU *_cpu, int _thread_num,
 
 #endif
 
-#if FULL_SYSTEM
-void
-SimpleThread::init()
-{
-    Port *mem_port;
-    physPort = new FunctionalPort(csprintf("%s-%d-funcport",
-                                           cpu->name(), tid));
-    mem_port = getMemFuncPort();
-    mem_port->setPeer(physPort);
-    physPort->setPeer(mem_port);
-
-    virtPort = new VirtualPort(csprintf("%s-%d-vport",
-                                        cpu->name(), tid));
-    mem_port = getMemFuncPort();
-    mem_port->setPeer(virtPort);
-    virtPort->setPeer(mem_port);
-}
-#endif
-
 SimpleThread::SimpleThread()
 #if FULL_SYSTEM
     : ThreadState(NULL, -1, -1)
@@ -316,10 +297,7 @@ SimpleThread::getVirtPort(ThreadContext *src_tc)
         return virtPort;
 
     VirtualPort *vp = new VirtualPort("tc-vport", src_tc);
-    Port *mem_port = getMemFuncPort();
-
-    mem_port->setPeer(vp);
-    vp->setPeer(mem_port);
+    connectToMemFunc(vp);
     return vp;
 }