gem5  v21.1.0.2
Public Member Functions | Public Attributes | List of all members
gem5::RegisterBank< BankByteOrder >::RegisterLBuf< BufBytes > Class Template Reference

#include <reg_bank.hh>

Inheritance diagram for gem5::RegisterBank< BankByteOrder >::RegisterLBuf< BufBytes >:
gem5::RegisterBank< BankByteOrder >::RegisterBuf gem5::RegisterBank< BankByteOrder >::RegisterBase gem5::RegisterBankBase::RegisterBaseBase

Public Member Functions

 RegisterLBuf (const std::string &new_name)
 
void serialize (std::ostream &os) const override
 
bool unserialize (const std::string &s) override
 
- Public Member Functions inherited from gem5::RegisterBank< BankByteOrder >::RegisterBuf
 RegisterBuf (const std::string &new_name, void *ptr, size_t bytes)
 
void write (const void *buf) override
 
void write (const void *buf, off_t offset, size_t bytes) override
 
void read (void *buf) override
 
void read (void *buf, off_t offset, size_t bytes) override
 
- Public Member Functions inherited from gem5::RegisterBank< BankByteOrder >::RegisterBase
constexpr RegisterBase (const std::string &new_name, size_t new_size)
 
virtual ~RegisterBase ()
 
virtual const std::string & name () const
 
size_t size () const
 

Public Attributes

std::array< uint8_t, BufBytes > buffer
 

Additional Inherited Members

- Protected Member Functions inherited from gem5::RegisterBank< BankByteOrder >::RegisterBuf
void setBuffer (void *buf)
 This method exists so that derived classes that need to initialize their buffers before they can be set can do so. More...
 
- Protected Attributes inherited from gem5::RegisterBank< BankByteOrder >::RegisterBase
const std::string _name
 
size_t _size = 0
 

Detailed Description

template<ByteOrder BankByteOrder>
template<int BufBytes>
class gem5::RegisterBank< BankByteOrder >::RegisterLBuf< BufBytes >

Definition at line 459 of file reg_bank.hh.

Constructor & Destructor Documentation

◆ RegisterLBuf()

template<ByteOrder BankByteOrder>
template<int BufBytes>
gem5::RegisterBank< BankByteOrder >::RegisterLBuf< BufBytes >::RegisterLBuf ( const std::string &  new_name)
inline

Definition at line 464 of file reg_bank.hh.

Member Function Documentation

◆ serialize()

template<ByteOrder BankByteOrder>
template<int BufBytes>
void gem5::RegisterBank< BankByteOrder >::RegisterLBuf< BufBytes >::serialize ( std::ostream &  os) const
inlineoverridevirtual

Reimplemented from gem5::RegisterBank< BankByteOrder >::RegisterBuf.

Definition at line 471 of file reg_bank.hh.

◆ unserialize()

template<ByteOrder BankByteOrder>
template<int BufBytes>
bool gem5::RegisterBank< BankByteOrder >::RegisterLBuf< BufBytes >::unserialize ( const std::string &  s)
inlineoverridevirtual

Reimplemented from gem5::RegisterBank< BankByteOrder >::RegisterBuf.

Definition at line 482 of file reg_bank.hh.

Member Data Documentation

◆ buffer

template<ByteOrder BankByteOrder>
template<int BufBytes>
std::array<uint8_t, BufBytes> gem5::RegisterBank< BankByteOrder >::RegisterLBuf< BufBytes >::buffer

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

Generated on Tue Sep 21 2021 12:28:03 for gem5 by doxygen 1.8.17