From ce5766c409ca3e27e62a300b89511b9d0fcd6c18 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Fri, 2 Nov 2012 11:50:16 -0500 Subject: mem: fix use after free issue in memories until 4-phase work complete. --- src/mem/simple_mem.hh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mem/simple_mem.hh') diff --git a/src/mem/simple_mem.hh b/src/mem/simple_mem.hh index f1bad7d9f..ab002f270 100644 --- a/src/mem/simple_mem.hh +++ b/src/mem/simple_mem.hh @@ -118,6 +118,12 @@ class SimpleMemory : public AbstractMemory EventWrapper releaseEvent; + /** @todo this is a temporary workaround until the 4-phase code is + * committed. upstream caches needs this packet until true is returned, so + * hold onto it for deletion until a subsequent call + */ + std::vector pendingDelete; + public: SimpleMemory(const SimpleMemoryParams *p); -- cgit v1.2.3