gem5
|
#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 WriteMask::performAtomic().
void DataBlock::clear | ( | ) |
Definition at line 50 of file DataBlock.cc.
References RubySystem::getBlockSizeBytes(), and m_data.
Referenced by alloc(), and GPUCoalescer::issueRequest().
|
inline |
Definition at line 102 of file DataBlock.hh.
Definition at line 62 of file DataBlock.cc.
References RubySystem::getBlockSizeBytes(), WriteMask::getMask(), ArmISA::i, and m_data.
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(), m_data, and ArmISA::offset.
Referenced by CacheRecorder::addRecord(), GPUCoalescer::atomicCallback(), DMASequencer::dataCallback(), Sequencer::hitCallback(), GPUCoalescer::hitCallback(), AbstractController::queueMemoryWrite(), and AbstractController::queueMemoryWritePartial().
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 115 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, m_data, and X86ISA::size().
Referenced by operator<<().
|
inline |
Definition at line 96 of file DataBlock.hh.
Referenced by SubBlock::internalMergeTo(), and testAndWrite().
void DataBlock::setData | ( | const uint8_t * | data, |
int | offset, | ||
int | len | ||
) |
Definition at line 108 of file DataBlock.cc.
References RubySystem::getBlockSizeBytes(), and m_data.
Referenced by copyPartial(), Sequencer::hitCallback(), and GPUCoalescer::hitCallback().
|
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().