mem-cache: Add setters to validate and secure block
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Thu, 25 Oct 2018 15:26:02 +0000 (17:26 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Mon, 26 Nov 2018 12:49:18 +0000 (12:49 +0000)
commit24bfdc36f19fddbfcb33cc2f33fb216e8da0382d
tree76cac629050b370f96fb1d58b6963b9dd7529346
parentd7409ddbaffa18f6c7066a521fb24f38130c5a99
mem-cache: Add setters to validate and secure block

In order to allow polymorphism of the block these two
functions have been added, and all direct status
assignments to these bits have been substituted.

We also assert that the block has been invalidated
before insertion. Then the block is validated in
the insertion.

Change-Id: Ie7be42408721ad4c2c9dc880f82a62cb594f8668
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/14362
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.cc
src/mem/cache/cache_blk.hh
src/mem/cache/tags/sector_blk.hh
src/mem/cache/tags/sector_tags.cc