summaryrefslogtreecommitdiff
path: root/dev/io_device.cc
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2006-04-28 15:38:43 -0400
committerAli Saidi <saidi@eecs.umich.edu>2006-04-28 15:38:43 -0400
commitc4b3a2fa0f0cbddbb3590964abf1f20a2f2bc6f3 (patch)
treed33e8a30450721f6ec8271d4db0810af91f9b5f8 /dev/io_device.cc
parent53d93ef9182aade99faa5996dece522d9aba88d1 (diff)
downloadgem5-c4b3a2fa0f0cbddbb3590964abf1f20a2f2bc6f3.tar.xz
devices should increment pkt.time instead of assiging to it
--HG-- extra : convert_revision : b4ca3c7fc13bf0856eb2a800a11d5611b473ec3e
Diffstat (limited to 'dev/io_device.cc')
-rw-r--r--dev/io_device.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/dev/io_device.cc b/dev/io_device.cc
index 42b3c382f..24f33d84d 100644
--- a/dev/io_device.cc
+++ b/dev/io_device.cc
@@ -116,7 +116,13 @@ DmaPort::recvTiming(Packet &pkt)
DmaReqState *state;
state = (DmaReqState*)pkt.senderState;
state->completionEvent->schedule(pkt.time - pkt.req->getTime());
+ delete pkt.req;
+ delete &pkt;
+ } else {
+ delete pkt.req;
+ delete &pkt;
}
+
return Success;
}
@@ -203,7 +209,7 @@ DmaPort::sendDma(Packet *pkt)
if (state == Timing) {
if (sendTiming(pkt) == Failure)
transmitList.push_back(&packet);
- } else if (state == Atomic) {*/
+ } else if (state == Atomic) {*/
sendAtomic(*pkt);
if (pkt->senderState) {
DmaReqState *state = (DmaReqState*)pkt->senderState;