gem5
[DEVELOP-FOR-23.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 | setData (PacketPtr pkt) |
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 60 of file DataBlock.hh.
|
inline |
Definition at line 63 of file DataBlock.hh.
References alloc().
gem5::ruby::DataBlock::DataBlock | ( | const DataBlock & | cp | ) |
Definition at line 52 of file DataBlock.cc.
References gem5::ruby::RubySystem::getBlockSizeBytes(), m_alloc, and m_data.
|
inline |
Definition at line 70 of file DataBlock.hh.
|
private |
Definition at line 60 of file DataBlock.cc.
References clear(), gem5::ruby::RubySystem::getBlockSizeBytes(), m_alloc, and m_data.
Referenced by DataBlock().
|
inline |
Definition at line 100 of file DataBlock.hh.
Definition at line 90 of file DataBlock.cc.
References gem5::ruby::RubySystem::getBlockSizeBytes(), gem5::ArmISA::i, m_data, and gem5::mask().
void gem5::ruby::DataBlock::clear | ( | ) |
Definition at line 68 of file DataBlock.cc.
References gem5::ruby::RubySystem::getBlockSizeBytes(), and m_data.
Referenced by alloc(), and gem5::ruby::VIPERCoalescer::issueRequest().
Definition at line 80 of file DataBlock.cc.
References gem5::ruby::RubySystem::getBlockSizeBytes(), gem5::ArmISA::i, m_data, and gem5::mask().
|
inline |
Definition at line 123 of file DataBlock.hh.
References len, m_data, gem5::ArmISA::offset, and setData().
bool gem5::ruby::DataBlock::equal | ( | const DataBlock & | obj | ) | const |
Definition at line 74 of file DataBlock.cc.
References gem5::ruby::RubySystem::getBlockSizeBytes(), and m_data.
Referenced by gem5::ruby::operator==().
|
inline |
Definition at line 111 of file DataBlock.hh.
References m_data.
Referenced by gem5::ruby::SubBlock::internalMergeFrom(), gem5::ruby::testAndRead(), and gem5::ruby::testAndReadMask().
const uint8_t * gem5::ruby::DataBlock::getData | ( | int | offset, |
int | len | ||
) | const |
Definition at line 111 of file DataBlock.cc.
References gem5::ruby::RubySystem::getBlockSizeBytes(), len, m_data, and gem5::ArmISA::offset.
Referenced by gem5::ruby::DMASequencer::atomicCallback(), and gem5::ruby::DMASequencer::dataCallback().
uint8_t * gem5::ruby::DataBlock::getDataMod | ( | int | offset | ) |
Definition at line 118 of file DataBlock.cc.
References m_data, and gem5::ArmISA::offset.
Referenced by gem5::ruby::WriteMask::performAtomic().
Definition at line 138 of file DataBlock.cc.
References gem5::ruby::RubySystem::getBlockSizeBytes(), and m_data.
void gem5::ruby::DataBlock::print | ( | std::ostream & | out | ) | const |
Definition at line 99 of file DataBlock.cc.
References gem5::ruby::RubySystem::getBlockSizeBytes(), gem5::ArmISA::i, and m_data.
Referenced by gem5::ruby::operator<<().
|
inline |
Definition at line 117 of file DataBlock.hh.
Referenced by gem5::ruby::testAndWrite().
void gem5::ruby::DataBlock::setData | ( | const uint8_t * | data, |
int | offset, | ||
int | len | ||
) |
Definition at line 124 of file DataBlock.cc.
References data, len, m_data, and gem5::ArmISA::offset.
Referenced by copyPartial(), and gem5::ruby::VIPERCoalescer::issueRequest().
void gem5::ruby::DataBlock::setData | ( | PacketPtr | pkt | ) |
Definition at line 130 of file DataBlock.cc.
References gem5::Packet::getAddr(), gem5::ruby::RubySystem::getBlockSizeBytes(), gem5::ruby::getOffset(), gem5::Packet::getSize(), m_data, gem5::ArmISA::offset, and gem5::Packet::writeData().
|
private |
Definition at line 96 of file DataBlock.hh.
Referenced by alloc(), assign(), DataBlock(), and ~DataBlock().
|
private |
Definition at line 95 of file DataBlock.hh.
Referenced by alloc(), assign(), atomicPartial(), clear(), copyPartial(), DataBlock(), equal(), getByte(), getData(), getDataMod(), operator=(), print(), setByte(), setData(), and ~DataBlock().