mem-cache: Add match functions to QueueEntry
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Thu, 24 Jan 2019 14:00:18 +0000 (15:00 +0100)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Fri, 19 Apr 2019 16:34:00 +0000 (16:34 +0000)
commit2d84dc46babdcbd6b6f061d3fe3fec34b999ff5c
tree7727de5e51977e3584b4943b2961782eefb329d1
parentd4cee4dc66e175dd6cea7e9bcbe815a7d2d35462
mem-cache: Add match functions to QueueEntry

Having the caller decide the matching logic is error-prone, and
frequently ends up with the secure bit being forgotten. This
change adds matching functions to the QueueEntry to avoid this
problem.

As a side effect the signature of findPending has been changed.

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