Quick fix for the CPU not printing out the right address upon re-execution of a load...
authorKevin Lim <ktlim@umich.edu>
Fri, 14 Apr 2006 15:59:18 +0000 (11:59 -0400)
committerKevin Lim <ktlim@umich.edu>
Fri, 14 Apr 2006 15:59:18 +0000 (11:59 -0400)
Split mem ops will solve this problem in the future.

--HG--
extra : convert_revision : 5bb921998aa0408d568030ef544b9905c4038bb2

cpu/simple/cpu.cc

index 6cef59796f2dced9a103b3f1ccccb3a7377960a8..85a38f99cd90941004e4d3863f3e86196cea91ef 100644 (file)
@@ -478,7 +478,7 @@ SimpleCPU::read(Addr addr, T &data, unsigned flags)
         }
 
         if (traceData) {
-            traceData->setAddr(addr);
+            traceData->setAddr(data_read_req->getVaddr());
         }
 
         // @todo: Figure out a way to create a Fault from the packet result.