mem: Allocate cache writebacks before new MSHRs
authorAndreas Hansson <andreas.hansson@arm.com>
Fri, 27 Mar 2015 08:56:02 +0000 (04:56 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Fri, 27 Mar 2015 08:56:02 +0000 (04:56 -0400)
commit0197e580e5761cba7c1f643aa9d85d5465964106
tree0dbc26267015dc08d3d1d4197e3619d027b1059c
parent24763c21775aed939228b1c8f048f8f7982de91c
mem: Allocate cache writebacks before new MSHRs

This patch changes the order of writeback allocation such that any
writebacks resulting from a tag lookup (e.g. for an uncacheable
access), are added to the writebuffer before any new MSHR entries are
allocated. This ensures that the writebacks logically precedes the new
allocations.

The patch also changes the uncacheable flush to use proper timed (or
atomic) writebacks, as opposed to functional writes.
src/mem/cache/cache.hh
src/mem/cache/cache_impl.hh