mem: Update mostly exclusive policy even further
mem: Update mostly exclusive policy even further

This patch takes yet another step in maintaining the clusivity, in
that it allows a mostly-inclusive cache to hold on to blocks even when
responding to a ReadExReq or UpgradeReq. Previously the cache simply
invalidated these blocks, but there is no strict need to do so.

The most important part of this patch is that we simply mark the block
clean when satisfying the upstream request where the cache is allowed
to keep the block. The only tricky part of the patch is in the memory
management of deferred snoops, where we need to distinguish the cases
where only the packet was copied (we expected to respond), and the
cases where we created an entirely new packet and request (we kept it
only to replay later).

The code in satisfyRequest is definitely ready for some refactoring
after this.

Change-Id: I201ddc7b2582eaa46fb8cff0c7ad09e02d64b0fc
Reviewed-by: Nikos Nikoleris <b6a1b3cd9d36c44e9eeb16bc870df3cb2a0cf469@arm.com>
Reviewed-by: Tony Gutierrez <fe4627c83134668039628e34eb0e4dda45a5da5e@amd.com>

cancro7/gem5,cancro7/gem5,rjschof/gem5,KuroeKurose/gem5,rallylee/gem5,rjschof/gem5,gedare/gem5,SanchayanMaity/gem5,TUD-OS/gem5-dtu,gedare/gem5,rallylee/gem5,sobercoder/gem5,HwisooSo/gemV-update,rallylee/gem5,gedare/gem5,HwisooSo/gemV-update,powerjg/gem5-ci-test,rallylee/gem5,KuroeKurose/gem5,aclifton/cpeg853-gem5,sobercoder/gem5,Weil0ng/gem5,gedare/gem5,SanchayanMaity/gem5,Weil0ng/gem5,SanchayanMaity/gem5,cancro7/gem5,SanchayanMaity/gem5,KuroeKurose/gem5,TUD-OS/gem5-dtu,cancro7/gem5,Weil0ng/gem5,HwisooSo/gemV-update,sobercoder/gem5,cancro7/gem5,aclifton/cpeg853-gem5,SanchayanMaity/gem5,rjschof/gem5,sobercoder/gem5,HwisooSo/gemV-update,powerjg/gem5-ci-test,Weil0ng/gem5,sobercoder/gem5,sobercoder/gem5,gem5/gem5,sobercoder/gem5,powerjg/gem5-ci-test,cancro7/gem5,rallylee/gem5,gem5/gem5,Weil0ng/gem5,aclifton/cpeg853-gem5,rjschof/gem5,TUD-OS/gem5-dtu,powerjg/gem5-ci-test,gedare/gem5,rjschof/gem5,SanchayanMaity/gem5,gem5/gem5,KuroeKurose/gem5,powerjg/gem5-ci-test,HwisooSo/gemV-update,TUD-OS/gem5-dtu,gem5/gem5,KuroeKurose/gem5,HwisooSo/gemV-update,powerjg/gem5-ci-test,aclifton/cpeg853-gem5,gedare/gem5,cancro7/gem5,aclifton/cpeg853-gem5,TUD-OS/gem5-dtu,gem5/gem5,gem5/gem5,powerjg/gem5-ci-test,rallylee/gem5,TUD-OS/gem5-dtu,HwisooSo/gemV-update,Weil0ng/gem5,KuroeKurose/gem5,gem5/gem5,rjschof/gem5,SanchayanMaity/gem5,aclifton/cpeg853-gem5,TUD-OS/gem5-dtu,rjschof/gem5,KuroeKurose/gem5,Weil0ng/gem5,aclifton/cpeg853-gem5,rallylee/gem5,gedare/gem5