diff options
Diffstat (limited to 'src/mem/cache/sector_blk.cc')
-rw-r--r-- | src/mem/cache/sector_blk.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mem/cache/sector_blk.cc b/src/mem/cache/sector_blk.cc index 07d9e9543..5607f4ccc 100644 --- a/src/mem/cache/sector_blk.cc +++ b/src/mem/cache/sector_blk.cc @@ -37,6 +37,7 @@ #include <cassert> +#include "base/cprintf.hh" #include "base/logging.hh" void @@ -86,6 +87,13 @@ SectorSubBlk::insert(const Addr tag, const bool is_secure, _sectorBlk->setTag(tag); } +std::string +SectorSubBlk::print() const +{ + return csprintf("%s sector offset: %#x", CacheBlk::print(), + getSectorOffset()); +} + bool SectorBlk::isValid() const { |