mem: Defer deletion of respQueue.front() in DRAMCtrl
authorMatthew Poremba <matthew.poremba@amd.com>
Fri, 8 May 2020 22:18:43 +0000 (17:18 -0500)
committerMatthew Poremba <matthew.poremba@amd.com>
Mon, 11 May 2020 15:42:28 +0000 (15:42 +0000)
commit49390bb8f743e416413ba7832ade31d9bec96f06
treec52d732d428bb9491197815da1b5789132694ea9
parent2877d0fa636e4f16469bb8efa71a0dbe0b9c48d6
mem: Defer deletion of respQueue.front() in DRAMCtrl

The front() of respQueue was being deleted before the last usuage of
dram_pkt (which points to the same object) causing random crashes.

Change-Id: I89862d10599dc0d1a50717dac8ed9298b4d74a3d
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/28808
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/dram_ctrl.cc