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/sector_blk.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/sector_blk.hh')
-rw-r--r-- | src/mem/cache/sector_blk.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mem/cache/sector_blk.hh b/src/mem/cache/sector_blk.hh index f8f8cd5e6..66d83a230 100644 --- a/src/mem/cache/sector_blk.hh +++ b/src/mem/cache/sector_blk.hh @@ -114,6 +114,13 @@ class SectorSubBlk : public CacheBlk */ void insert(const Addr tag, const bool is_secure, const int src_master_ID, const uint32_t task_ID) override; + + /** + * Pretty-print sector offset and other CacheBlk information. + * + * @return string with basic state information + */ + std::string print() const override; }; /** |