Otawa
0.10
|
Represents a single block used by the data cache. More...
#include <otawa/dcache/features.h>
Public Member Functions | |
Block (void) | |
Build a "any" number (with a null address). More... | |
Block (int set, int index, const Address &address) | |
Build a simple block. More... | |
Block (const Block &block) | |
Cloning of a block. More... | |
int | set (void) const |
Get the set number of a block. More... | |
int | index (void) const |
Get the number of a block. More... | |
const Address & | address (void) const |
void | print (io::Output &out) const |
Print a block. More... | |
Private Attributes | |
int | _set |
int | idx |
Address | addr |
Represents a single block used by the data cache.
|
inline |
Build a "any" number (with a null address).
|
inline |
Build a simple block.
set | Number of its cache set. |
index | Its number. |
address | Address of the block. |
References otawa::Address::isNull().
|
inline |
Cloning of a block.
block | Block to clone. |
|
inline |
References addr.
Referenced by otawa::dcache::BlockAccess::in(), and otawa::etime::StandardEventBuilder::processBB().
|
inline |
Get the number of a block.
References idx.
Referenced by otawa::dcache::BlockAccess::in(), otawa::dcache::BlockBuilder::processBB(), otawa::dcache::CATBuilder::processLBlockSet(), otawa::dcache::MUSTProblem::purge(), otawa::dcache::MUSTPERS::update(), otawa::dcache::MUSTProblem::update(), otawa::dcache::MAYProblem::update(), and otawa::dcache::DirtyManager::update().
void otawa::dcache::Block::print | ( | io::Output & | out | ) | const |
|
inline |
Get the set number of a block.
References _set.
Referenced by otawa::dcache::BlockBuilder::processBB(), otawa::dcache::CATBuilder::processLBlockSet(), otawa::dcache::MUSTProblem::purge(), otawa::dcache::PERSProblem::purge(), otawa::dcache::MUSTPERS::update(), otawa::dcache::MUSTProblem::update(), otawa::dcache::MAYProblem::update(), and otawa::dcache::DirtyManager::update().