mem-cache: Add getter and setter to CacheBlk::whenReady
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Wed, 28 Nov 2018 12:54:42 +0000 (13:54 +0100)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Tue, 4 Dec 2018 10:34:26 +0000 (10:34 +0000)
commit174da8e2da6a896d2e97bc264f9c827a0f4c35ac
treeb362adf7f2abf0cf309bf421ba0240c164791932
parentfc09f4a24e22988cb89650b1d5b1f3716cf5c893
mem-cache: Add getter and setter to CacheBlk::whenReady

Add a getter and a setter function to access CacheBlk::whenReady
to encapsulate the variable and allow error checking. This error
checking consists on verifying that writes to a block after it
has been inserted follow a chronological order.

As a side effect, tickInserted retain its value until updated,
that is, it is not reset in invalidate().

Change-Id: Idc3c5a99c3f002ee9acc2424f00e554877fd3a69
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/14715
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
src/mem/cache/base.cc
src/mem/cache/cache_blk.hh