summaryrefslogtreecommitdiff
path: root/src/mem/cache/noncoherent_cache.cc
diff options
context:
space:
mode:
authorNikos Nikoleris <nikos.nikoleris@arm.com>2018-09-01 15:38:13 +0100
committerNikos Nikoleris <nikos.nikoleris@arm.com>2018-09-13 07:25:04 +0000
commitd695a3c4c4478f08673bff255250444857d48094 (patch)
tree653191c049190af646d4ea2f91e0c7a412dd142b /src/mem/cache/noncoherent_cache.cc
parent2045a5c199c7c7597684c5d7501d5fb55aff9608 (diff)
downloadgem5-d695a3c4c4478f08673bff255250444857d48094.tar.xz
mem-cache: Fix bug in handleAtomicReqMiss
"4976ff5 mem-cache: Refactor the recvAtomic function" introduced a bug where if an atomic request that fills in using the tempBlock it will not evict it when it finishes handling the request as it should. This triggers an assertion. This change fixes this bug. Change-Id: I73c808a7e15237eddb36b5448ef6728f7bcf7fd9 Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-on: https://gem5-review.googlesource.com/12644 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br> Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Diffstat (limited to 'src/mem/cache/noncoherent_cache.cc')
-rw-r--r--src/mem/cache/noncoherent_cache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/cache/noncoherent_cache.cc b/src/mem/cache/noncoherent_cache.cc
index 50738375e..fb8193a99 100644
--- a/src/mem/cache/noncoherent_cache.cc
+++ b/src/mem/cache/noncoherent_cache.cc
@@ -170,7 +170,7 @@ NoncoherentCache::createMissPacket(PacketPtr cpu_pkt, CacheBlk *blk,
Cycles
-NoncoherentCache::handleAtomicReqMiss(PacketPtr pkt, CacheBlk *blk,
+NoncoherentCache::handleAtomicReqMiss(PacketPtr pkt, CacheBlk *&blk,
PacketList &writebacks)
{
PacketPtr bus_pkt = createMissPacket(pkt, blk, true);