mem-cache: Avoid write merging if there are reads in between
authorNikos Nikoleris <nikos.nikoleris@arm.com>
Tue, 26 Nov 2019 12:59:03 +0000 (12:59 +0000)
committerNikos Nikoleris <nikos.nikoleris@arm.com>
Mon, 6 Jan 2020 11:09:21 +0000 (11:09 +0000)
commit44e3c95555b380f62c3fa4d878d78f26ad035475
treedae42b1608eac6b602449493a410103901d99d65
parent6f864aaf4a472036e97c0ba28743f221811f1fc0
mem-cache: Avoid write merging if there are reads in between

This CL reworks the logic in the MSHR to make sure we do not coalesce
requests unless there is a series of write requests for the whole
cache block without any other incompatible requests (e.g., read) in
between.

Change-Id: I0b3195858fb33ef85d7aae27376506057dd53ea7
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23666
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/cache/mshr.cc
src/mem/cache/mshr.hh