summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mem/simple_dram.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mem/simple_dram.cc b/src/mem/simple_dram.cc
index 90517ec62..0b24b4056 100644
--- a/src/mem/simple_dram.cc
+++ b/src/mem/simple_dram.cc
@@ -739,6 +739,9 @@ SimpleDRAM::accessAndRespond(PacketPtr pkt)
// next tick
port.schedTimingResp(pkt, curTick() + 1);
} else {
+ // @todo the packet is going to be deleted, and the DRAMPacket
+ // is still having a pointer to it
+ pendingDelete.push_back(pkt);
}
DPRINTF(DRAM, "Done\n");