mem-cache: Add getter for the number of valid sub-blks
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Thu, 22 Aug 2019 12:15:46 +0000 (14:15 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Fri, 17 Jan 2020 20:41:39 +0000 (20:41 +0000)
commit6eabbd49ebe47f4ba77b75d5b3913cdf85401430
tree953b11b86399e7a58aa87cb874e56170a88a69ba
parent62dfa5a1fb90d3559c2f2604c1a2fb7693bb8dc2
mem-cache: Add getter for the number of valid sub-blks

Add a getter function so that the number of valid sub-blocks can be
retrieved. As a side effect, make the respective counter private.

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