mem-cache: Prune unnecessary writebacks in exclusive caches
authorNikos Nikoleris <nikos.nikoleris@arm.com>
Mon, 4 Sep 2017 15:38:36 +0000 (16:38 +0100)
committerNikos Nikoleris <nikos.nikoleris@arm.com>
Tue, 9 Jan 2018 17:04:32 +0000 (17:04 +0000)
commite8236503ce70ea83f4f61716f54421b32ce009ce
tree8f6f575d12036afd7c4f4d39ad25ddf1d415e619
parent50f9ef0def163969520006d53f40597123fb8ca5
mem-cache: Prune unnecessary writebacks in exclusive caches

Exclusive caches use the tempBlock to fill for responses from a
downstream cache. The reason for this is that they only pass the block
to the cache above without keeping a copy. When all requests are
serviced the block is immediately invalidated unless it is dirty, in
which case it has to be written back to the memory below.

To avoid unnecessary writebacks, this changeset forces mostly
exclusive caches to issuse requests that can only fetch clean data
when possible.

Reported-by: Quereshi Muhammad Avais <avais@kaist.ac.kr>
Change-Id: I01b377563f5aa3e12d22f425a04db7c023071849
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/5061
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
src/mem/cache/cache.cc