From: Clint Smullen Date: Tue, 26 Aug 2008 06:37:26 +0000 (-0400) Subject: Device: Fix bug in DmaPort::recvRetry. The interface attempts to send the same packet... X-Git-Tag: m5_2.0_beta6~49 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4aa017affc53b3b730219d3b617f0e237c57debc;p=gem5.git Device: Fix bug in DmaPort::recvRetry. The interface attempts to send the same packet again. It doesn't cause a problem currently, however with a different Memory Object it could cause problems --- diff --git a/src/dev/io_device.cc b/src/dev/io_device.cc index b86a2d313..41fcec8ac 100644 --- a/src/dev/io_device.cc +++ b/src/dev/io_device.cc @@ -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);