mem: Unify delayed packet deletion
authorAndreas Hansson <andreas.hansson@arm.com>
Fri, 6 Nov 2015 08:26:21 +0000 (03:26 -0500)
committerAndreas Hansson <andreas.hansson@arm.com>
Fri, 6 Nov 2015 08:26:21 +0000 (03:26 -0500)
commitac1368df50af123b32b41d7115ea4a0f15f7c97f
tree107ba41258ee0a30de841624bc6f3c5fab041d8f
parent2cb5467e8514934c4d88304c65050adead0ffc7e
mem: Unify delayed packet deletion

This patch unifies how we deal with delayed packet deletion, where the
receiving slave is responsible for deleting the packet, but the
sending agent (e.g. a cache) is still relying on the pointer until the
call to sendTimingReq completes. Previously we used a mix of a
deletion vector and a construct using unique_ptr. With this patch we
ensure all slaves use the latter approach.
12 files changed:
src/mem/cache/cache.cc
src/mem/cache/cache.hh
src/mem/coherent_xbar.cc
src/mem/coherent_xbar.hh
src/mem/dram_ctrl.cc
src/mem/dram_ctrl.hh
src/mem/dramsim2.cc
src/mem/dramsim2.hh
src/mem/simple_mem.cc
src/mem/simple_mem.hh
src/mem/tport.cc
src/mem/tport.hh