mem: Always use the helper function to invalidate a block
authorNikos Nikoleris <nikos.nikoleris@arm.com>
Tue, 21 Feb 2017 14:14:44 +0000 (14:14 +0000)
committerNikos Nikoleris <nikos.nikoleris@arm.com>
Tue, 21 Feb 2017 14:14:44 +0000 (14:14 +0000)
commita063a149059236dfee608b478042a6ce65a0d902
tree0ea1c06ed5dbbede13506391733b1b844d26b94f
parent46b4c402779cd8fa37bde8de0069b80bfdaa8454
mem: Always use the helper function to invalidate a block

Policies like the LRU need to be notified when a block is invalidated,
the helper function does this along with invalidating the block.

Change-Id: I3ed59cf07938caa7f394ee6054b0af9e00b267ea
Reviewed-by: Andreas Hansson <andreas.hansson@arm.com>
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
src/mem/cache/cache.cc