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
SubBlock Class Reference

#include <SubBlock.hh>

Public Member Functions

 SubBlock ()
 
 SubBlock (Addr addr, int size)
 
 ~SubBlock ()
 
Addr getAddress () const
 
void setAddress (Addr addr)
 
int getSize () const
 
void resize (int size)
 
uint8_t getByte (int offset) const
 
void setByte (int offset, uint8_t data)
 
uint8_t readByte () const
 
void writeByte (uint8_t data)
 
void mergeTo (DataBlock &data) const
 
void mergeFrom (const DataBlock &data)
 
void print (std::ostream &out) const
 

Private Member Functions

void internalMergeTo (DataBlock &data) const
 
void internalMergeFrom (const DataBlock &data)
 

Private Attributes

Addr m_address
 
std::vector< uint8_t > m_data
 

Detailed Description

Definition at line 38 of file SubBlock.hh.

Constructor & Destructor Documentation

SubBlock::SubBlock ( )
inline

Definition at line 41 of file SubBlock.hh.

SubBlock::SubBlock ( Addr  addr,
int  size 
)

Definition at line 35 of file SubBlock.cc.

References addr, ArmISA::i, m_address, resize(), setByte(), and X86ISA::size().

SubBlock::~SubBlock ( )
inline

Definition at line 43 of file SubBlock.hh.

Member Function Documentation

Addr SubBlock::getAddress ( ) const
inline

Definition at line 45 of file SubBlock.hh.

References m_address.

Referenced by RubyTester::hitCallback(), and Check::performCallback().

uint8_t SubBlock::getByte ( int  offset) const
inline

Definition at line 50 of file SubBlock.hh.

References m_data, and ArmISA::offset.

Referenced by RubyTester::hitCallback(), internalMergeTo(), Check::performCallback(), and readByte().

int SubBlock::getSize ( ) const
inline

Definition at line 48 of file SubBlock.hh.

References m_data.

Referenced by RubyTester::hitCallback(), internalMergeFrom(), internalMergeTo(), and print().

void SubBlock::internalMergeFrom ( const DataBlock data)
private
void SubBlock::internalMergeTo ( DataBlock data) const
private

Definition at line 56 of file SubBlock.cc.

References getByte(), getOffset(), getSize(), ArmISA::i, m_address, ArmISA::offset, DataBlock::setByte(), and X86ISA::size().

Referenced by mergeTo().

void SubBlock::mergeFrom ( const DataBlock data)
inline

Definition at line 60 of file SubBlock.hh.

References internalMergeFrom().

Referenced by GPUCoalescer::atomicCallback(), and GPUCoalescer::hitCallback().

void SubBlock::mergeTo ( DataBlock data) const
inline

Definition at line 59 of file SubBlock.hh.

References internalMergeTo().

void SubBlock::print ( std::ostream &  out) const

Definition at line 68 of file SubBlock.cc.

References getSize(), m_address, and m_data.

Referenced by operator<<().

uint8_t SubBlock::readByte ( ) const
inline

Definition at line 54 of file SubBlock.hh.

References getByte().

void SubBlock::resize ( int  size)
inline

Definition at line 49 of file SubBlock.hh.

References m_data.

Referenced by SubBlock().

void SubBlock::setAddress ( Addr  addr)
inline

Definition at line 46 of file SubBlock.hh.

References addr, and m_address.

void SubBlock::setByte ( int  offset,
uint8_t  data 
)
inline

Definition at line 51 of file SubBlock.hh.

References data, m_data, and ArmISA::offset.

Referenced by internalMergeFrom(), Check::performCallback(), SubBlock(), and writeByte().

void SubBlock::writeByte ( uint8_t  data)
inline

Definition at line 55 of file SubBlock.hh.

References setByte().

Member Data Documentation

Addr SubBlock::m_address
private

Definition at line 69 of file SubBlock.hh.

Referenced by getAddress(), internalMergeFrom(), internalMergeTo(), print(), setAddress(), and SubBlock().

std::vector<uint8_t> SubBlock::m_data
private

Definition at line 70 of file SubBlock.hh.

Referenced by getByte(), getSize(), print(), resize(), and setByte().


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

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