gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
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 * 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
 

Detailed Description

Definition at line 40 of file DataBlock.hh.

Constructor & Destructor Documentation

DataBlock::DataBlock ( )
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.

DataBlock::~DataBlock ( )
inline

Definition at line 50 of file DataBlock.hh.

References m_alloc, and m_data.

Member Function Documentation

void DataBlock::alloc ( )
private

Definition at line 42 of file DataBlock.cc.

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

Referenced by DataBlock().

void DataBlock::assign ( uint8_t *  data)
inline

Definition at line 79 of file DataBlock.hh.

References data, m_alloc, and m_data.

void DataBlock::atomicPartial ( const DataBlock dblk,
const WriteMask mask 
)
void DataBlock::clear ( )

Definition at line 50 of file DataBlock.cc.

References RubySystem::getBlockSizeBytes(), and m_data.

Referenced by alloc(), and GPUCoalescer::issueRequest().

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

Definition at line 102 of file DataBlock.hh.

References m_data, and setData().

void DataBlock::copyPartial ( const DataBlock dblk,
const WriteMask mask 
)

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==().

uint8_t DataBlock::getByte ( int  whichByte) const
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
uint8_t * DataBlock::getDataMod ( int  offset)

Definition at line 102 of file DataBlock.cc.

References m_data, and ArmISA::offset.

Referenced by WriteMask::performAtomic().

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

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<<().

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

Definition at line 96 of file DataBlock.hh.

References data, and m_data.

Referenced by SubBlock::internalMergeTo(), and testAndWrite().

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

Member Data Documentation

bool DataBlock::m_alloc
private

Definition at line 75 of file DataBlock.hh.

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

uint8_t* DataBlock::m_data
private

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

Generated on Fri Jun 9 2017 13:04:06 for gem5 by doxygen 1.8.6