gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::ruby::DataBlock Class Reference

#include <DataBlock.hh>

Public Member Functions

 DataBlock ()
 
 DataBlock (const DataBlock &cp)
 
 ~DataBlock ()
 
DataBlockoperator= (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 * popAtomicLogEntryFront ()
 
int numAtomicLogEntries () const
 
void clearAtomicLogEntries ()
 
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 isAtomicNoReturn=true)
 
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
 
std::deque< uint8_t * > m_atomicLog
 

Detailed Description

Definition at line 61 of file DataBlock.hh.

Constructor & Destructor Documentation

◆ DataBlock() [1/2]

gem5::ruby::DataBlock::DataBlock ( )
inline

Definition at line 64 of file DataBlock.hh.

References alloc().

◆ DataBlock() [2/2]

gem5::ruby::DataBlock::DataBlock ( const DataBlock & cp)

◆ ~DataBlock()

gem5::ruby::DataBlock::~DataBlock ( )
inline

Definition at line 71 of file DataBlock.hh.

References m_alloc, m_atomicLog, and m_data.

Member Function Documentation

◆ alloc()

void gem5::ruby::DataBlock::alloc ( )
private

Definition at line 70 of file DataBlock.cc.

References clear(), gem5::ruby::RubySystem::getBlockSizeBytes(), m_alloc, and m_data.

Referenced by DataBlock().

◆ assign()

void gem5::ruby::DataBlock::assign ( uint8_t * data)
inline

Definition at line 114 of file DataBlock.hh.

References data, m_alloc, and m_data.

◆ atomicPartial()

void gem5::ruby::DataBlock::atomicPartial ( const DataBlock & dblk,
const WriteMask & mask,
bool isAtomicNoReturn = true )

◆ clear()

void gem5::ruby::DataBlock::clear ( )

◆ clearAtomicLogEntries()

void gem5::ruby::DataBlock::clearAtomicLogEntries ( )

Definition at line 148 of file DataBlock.cc.

References m_atomicLog.

◆ copyPartial() [1/2]

void gem5::ruby::DataBlock::copyPartial ( const DataBlock & dblk,
const WriteMask & mask )

◆ copyPartial() [2/2]

void gem5::ruby::DataBlock::copyPartial ( const DataBlock & dblk,
int offset,
int len )
inline

Definition at line 137 of file DataBlock.hh.

References gem5::ArmISA::len, m_data, gem5::ArmISA::offset, and setData().

◆ equal()

bool gem5::ruby::DataBlock::equal ( const DataBlock & obj) const

◆ getByte()

uint8_t gem5::ruby::DataBlock::getByte ( int whichByte) const
inline

◆ getData()

◆ getDataMod()

uint8_t * gem5::ruby::DataBlock::getDataMod ( int offset)

Definition at line 164 of file DataBlock.cc.

References m_data, and gem5::ArmISA::offset.

◆ numAtomicLogEntries()

int gem5::ruby::DataBlock::numAtomicLogEntries ( ) const

Definition at line 135 of file DataBlock.cc.

References m_atomicLog.

◆ operator=()

DataBlock & gem5::ruby::DataBlock::operator= ( const DataBlock & obj)

◆ popAtomicLogEntryFront()

uint8_t * gem5::ruby::DataBlock::popAtomicLogEntryFront ( )

Definition at line 140 of file DataBlock.cc.

References m_atomicLog.

◆ print()

void gem5::ruby::DataBlock::print ( std::ostream & out) const

◆ setByte()

void gem5::ruby::DataBlock::setByte ( int whichByte,
uint8_t data )
inline

Definition at line 131 of file DataBlock.hh.

References data, and m_data.

Referenced by gem5::ruby::testAndWrite().

◆ setData() [1/2]

void gem5::ruby::DataBlock::setData ( const uint8_t * data,
int offset,
int len )

◆ setData() [2/2]

Member Data Documentation

◆ m_alloc

bool gem5::ruby::DataBlock::m_alloc
private

Definition at line 107 of file DataBlock.hh.

Referenced by alloc(), assign(), DataBlock(), and ~DataBlock().

◆ m_atomicLog

std::deque<uint8_t*> gem5::ruby::DataBlock::m_atomicLog
private

◆ m_data

uint8_t* gem5::ruby::DataBlock::m_data
private

The documentation for this class was generated from the following files:

Generated on Tue Jun 18 2024 16:24:22 for gem5 by doxygen 1.11.0