summaryrefslogtreecommitdiff
path: root/src/dev
diff options
context:
space:
mode:
authorClint Smullen <cws3k@cs.virginia.edu>2008-08-26 02:37:26 -0400
committerClint Smullen <cws3k@cs.virginia.edu>2008-08-26 02:37:26 -0400
commit4aa017affc53b3b730219d3b617f0e237c57debc (patch)
treea16450e548c128c6ccffd15e0344114b2322892a /src/dev
parent3d5fe0c372a16f9178b348080c1c1bb24dd1d834 (diff)
downloadgem5-4aa017affc53b3b730219d3b617f0e237c57debc.tar.xz
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
Diffstat (limited to 'src/dev')
-rw-r--r--src/dev/io_device.cc2
1 files changed, 1 insertions, 1 deletions
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);