From 4aa017affc53b3b730219d3b617f0e237c57debc Mon Sep 17 00:00:00 2001 From: Clint Smullen Date: Tue, 26 Aug 2008 02:37:26 -0400 Subject: 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 --- src/dev/io_device.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dev') 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); -- cgit v1.2.3