Device: Fix bug in DmaPort::recvRetry. The interface attempts to send the same packet...
authorClint Smullen <cws3k@cs.virginia.edu>
Tue, 26 Aug 2008 06:37:26 +0000 (02:37 -0400)
committerClint Smullen <cws3k@cs.virginia.edu>
Tue, 26 Aug 2008 06:37:26 +0000 (02:37 -0400)
It doesn't cause a problem currently, however with a different Memory Object it could cause
problems

src/dev/io_device.cc

index b86a2d313a9668f717a28c613e2cb497b306026b..41fcec8aca4c775a3d1a713fe5866d22d7e4eaa6 100644 (file)
@@ -190,9 +190,9 @@ void
 DmaPort::recvRetry()
 {
     assert(transmitList.size());
-    PacketPtr pkt = transmitList.front();
     bool result = true;
     do {
+        PacketPtr pkt = transmitList.front();
         DPRINTF(DMA, "Retry on %s addr %#x\n",
                 pkt->cmdString(), pkt->getAddr());
         result = sendTiming(pkt);