gem5
v20.1.0.0
|
#include <DataBlock.hh>
Public Member Functions | |
DataBlock () | |
DataBlock (const DataBlock &cp) | |
~DataBlock () | |
DataBlock & | operator= (const DataBlock &obj) |
void | assign (uint8_t *data) |
void | clear () |
uint8_t | getByte (int whichByte) const |
const uint8_t * | getData (int offset, int len) const |
uint8_t * | getDataMod (int offset) |
void | setByte (int whichByte, uint8_t data) |
void | setData (const uint8_t *data, int offset, int len) |
void | copyPartial (const DataBlock &dblk, int offset, int len) |
void | copyPartial (const DataBlock &dblk, const WriteMask &mask) |
void | atomicPartial (const DataBlock &dblk, const WriteMask &mask) |
bool | equal (const DataBlock &obj) const |
void | print (std::ostream &out) const |
Private Member Functions | |
void | alloc () |
Private Attributes | |
uint8_t * | m_data |
bool | m_alloc |
Definition at line 40 of file DataBlock.hh.
|
inline |
Definition at line 43 of file DataBlock.hh.
References alloc().
DataBlock::DataBlock | ( | const DataBlock & | cp | ) |
Definition at line 34 of file DataBlock.cc.
References RubySystem::getBlockSizeBytes(), m_alloc, and m_data.
|
inline |
Definition at line 50 of file DataBlock.hh.
|
private |
Definition at line 42 of file DataBlock.cc.
References clear(), RubySystem::getBlockSizeBytes(), m_alloc, and m_data.
Referenced by DataBlock().
|
inline |
Definition at line 79 of file DataBlock.hh.
Definition at line 72 of file DataBlock.cc.
References RubySystem::getBlockSizeBytes(), ArmISA::i, m_data, and ArmISA::mask.
void DataBlock::clear | ( | ) |
Definition at line 50 of file DataBlock.cc.
References RubySystem::getBlockSizeBytes(), and m_data.
Referenced by alloc(), and VIPERCoalescer::issueRequest().
Definition at line 62 of file DataBlock.cc.
References RubySystem::getBlockSizeBytes(), ArmISA::i, m_data, and ArmISA::mask.
|
inline |
Definition at line 102 of file DataBlock.hh.
References ArmISA::len, m_data, ArmISA::offset, and setData().
bool DataBlock::equal | ( | const DataBlock & | obj | ) | const |
Definition at line 56 of file DataBlock.cc.
References RubySystem::getBlockSizeBytes(), and m_data.
Referenced by operator==().
|
inline |
Definition at line 90 of file DataBlock.hh.
References m_data.
Referenced by SubBlock::internalMergeFrom(), testAndRead(), and testAndReadMask().
const uint8_t * DataBlock::getData | ( | int | offset, |
int | len | ||
) | const |
Definition at line 95 of file DataBlock.cc.
References RubySystem::getBlockSizeBytes(), ArmISA::len, m_data, and ArmISA::offset.
Referenced by DMASequencer::dataCallback().
uint8_t * DataBlock::getDataMod | ( | int | offset | ) |
Definition at line 102 of file DataBlock.cc.
References m_data, and ArmISA::offset.
Referenced by WriteMask::performAtomic().
Definition at line 114 of file DataBlock.cc.
References RubySystem::getBlockSizeBytes(), and m_data.
void DataBlock::print | ( | std::ostream & | out | ) | const |
Definition at line 81 of file DataBlock.cc.
References RubySystem::getBlockSizeBytes(), ArmISA::i, and m_data.
Referenced by operator<<().
|
inline |
Definition at line 96 of file DataBlock.hh.
Referenced by testAndWrite().
void DataBlock::setData | ( | const uint8_t * | data, |
int | offset, | ||
int | len | ||
) |
Definition at line 108 of file DataBlock.cc.
References data, ArmISA::len, m_data, and ArmISA::offset.
Referenced by copyPartial(), and VIPERCoalescer::issueRequest().
|
private |
Definition at line 75 of file DataBlock.hh.
Referenced by alloc(), assign(), DataBlock(), and ~DataBlock().
|
private |
Definition at line 74 of file DataBlock.hh.
Referenced by alloc(), assign(), atomicPartial(), clear(), copyPartial(), DataBlock(), equal(), getByte(), getData(), getDataMod(), operator=(), print(), setByte(), setData(), and ~DataBlock().