Change the cpu pointer in the InstRecord object to a thread context pointer.
[gem5.git] / src / cpu / simple_thread.cc
index af1db2ff27db727f1ed25ced1a813b51d67c46cd..5f86cf2b74b8b9445a7b12344c0f975faf70beb1 100644 (file)
@@ -196,6 +196,7 @@ SimpleThread::copyState(ThreadContext *oldContext)
 #if !FULL_SYSTEM
     funcExeInst = oldContext->readFuncExeInst();
 #endif
+    inst = oldContext->getInst();
 }
 
 void