gem5 v24.0.0.0
|
Simple class to provide virtual print() method on cache blocks without allocating a vtable pointer for every single cache block. More...
#include <cache_blk.hh>
Public Member Functions | |
CacheBlkPrintWrapper (CacheBlk *_blk) | |
virtual | ~CacheBlkPrintWrapper () |
void | print (std::ostream &o, int verbosity=0, const std::string &prefix="") const |
Public Member Functions inherited from gem5::Printable | |
Printable () | |
virtual | ~Printable () |
Private Attributes | |
CacheBlk * | blk |
Simple class to provide virtual print() method on cache blocks without allocating a vtable pointer for every single cache block.
Just wrap the CacheBlk object in an instance of this before passing to a function that requires a Printable object.
Definition at line 571 of file cache_blk.hh.
|
inline |
Definition at line 575 of file cache_blk.hh.
|
inlinevirtual |
Definition at line 576 of file cache_blk.hh.
|
virtual |
Implements gem5::Printable.
Definition at line 76 of file cache_blk.cc.
References blk, gem5::ccprintf(), gem5::CacheBlk::DirtyBit, gem5::TaggedEntry::isSecure(), gem5::CacheBlk::isSet(), gem5::CacheEntry::isValid(), gem5::X86ISA::os, and gem5::CacheBlk::WritableBit.
|
private |
Definition at line 573 of file cache_blk.hh.
Referenced by print().