diff options
author | Daniel R. Carvalho <odanrc@yahoo.com.br> | 2018-10-10 14:44:05 +0200 |
---|---|---|
committer | Daniel Carvalho <odanrc@yahoo.com.br> | 2018-10-11 09:32:32 +0000 |
commit | 1b44e883a2be3e107602ef2d3d984f8727fc06ac (patch) | |
tree | 5faa421d2be10cd9564c42b17eff4843740af1a5 /src/mem/cache/tags/fa_lru.hh | |
parent | 160bcba0d6729d37caf65e97a99e2ebdcf71f6a8 (diff) | |
download | gem5-1b44e883a2be3e107602ef2d3d984f8727fc06ac.tar.xz |
mem-cache: Virtualize block print
Encapsulate and virtualize block print, so that relevant
information can be easily printed anywhere.
Change-Id: I91109c29c126755183a0fd2b4446f5335e64076b
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/13415
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Diffstat (limited to 'src/mem/cache/tags/fa_lru.hh')
-rw-r--r-- | src/mem/cache/tags/fa_lru.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mem/cache/tags/fa_lru.hh b/src/mem/cache/tags/fa_lru.hh index 0d9a8d440..c2f983468 100644 --- a/src/mem/cache/tags/fa_lru.hh +++ b/src/mem/cache/tags/fa_lru.hh @@ -92,6 +92,13 @@ class FALRUBlk : public CacheBlk /** A bit mask of the caches that fit this block. */ CachesMask inCachesMask; + + /** + * Pretty-print inCachesMask and other CacheBlk information. + * + * @return string with basic state information + */ + std::string print() const override; }; /** |