From 1b44e883a2be3e107602ef2d3d984f8727fc06ac Mon Sep 17 00:00:00 2001 From: "Daniel R. Carvalho" Date: Wed, 10 Oct 2018 14:44:05 +0200 Subject: 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 Reviewed-on: https://gem5-review.googlesource.com/c/13415 Reviewed-by: Nikos Nikoleris Maintainer: Nikos Nikoleris --- src/mem/cache/sector_blk.hh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mem/cache/sector_blk.hh') 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; }; /** -- cgit v1.2.3