mem-cache: Virtualize block print
[gem5.git] / src / mem / cache / sector_blk.cc
index 07d9e9543f5add9b656af2f496bb295ee3a93c53..5607f4cccc9f56158c5fff59b9fa77eb49964fc6 100644 (file)
@@ -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
 {