gem5 v24.0.0.0
|
#include <reg_bank.hh>
Public Member Functions | |
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 |
void | serialize (std::ostream &os) const override |
bool | unserialize (const std::string &s) override |
void | reset () 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 |
Protected Member Functions | |
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. | |
Private Attributes | |
void * | _ptr = nullptr |
Additional Inherited Members | |
Protected Attributes inherited from gem5::RegisterBank< BankByteOrder >::RegisterBase | |
const std::string | _name |
size_t | _size = 0 |
Definition at line 473 of file reg_bank.hh.
|
inline |
Definition at line 479 of file reg_bank.hh.
|
inlineoverridevirtual |
Implements gem5::RegisterBank< BankByteOrder >::RegisterBase.
Definition at line 491 of file reg_bank.hh.
References gem5::RegisterBank< BankByteOrder >::RegisterBuf::read(), and gem5::RegisterBank< BankByteOrder >::RegisterBase::size().
Referenced by gem5::RegisterBank< BankByteOrder >::RegisterBuf::read().
|
inlineoverridevirtual |
Implements gem5::RegisterBank< BankByteOrder >::RegisterBase.
Definition at line 493 of file reg_bank.hh.
References gem5::RegisterBank< BankByteOrder >::RegisterBuf::_ptr, gem5::ArmISA::offset, and gem5::RegisterBank< BankByteOrder >::RegisterBase::size().
|
inlineoverridevirtual |
Implements gem5::RegisterBank< BankByteOrder >::RegisterBase.
Reimplemented in gem5::RegisterBank< BankByteOrder >::RegisterLBuf< BufBytes >, gem5::RegisterBank< BankByteOrder >::RegisterLBuf< 0x100 >, gem5::RegisterBank< BankByteOrder >::RegisterLBuf< 0x80 >, and gem5::RegisterBank< BankByteOrder >::RegisterLBuf< 12 >.
Definition at line 505 of file reg_bank.hh.
|
inlineoverridevirtual |
Implements gem5::RegisterBank< BankByteOrder >::RegisterBase.
Reimplemented in gem5::RegisterBank< BankByteOrder >::RegisterLBuf< BufBytes >, gem5::RegisterBank< BankByteOrder >::RegisterLBuf< 0x100 >, gem5::RegisterBank< BankByteOrder >::RegisterLBuf< 0x80 >, and gem5::RegisterBank< BankByteOrder >::RegisterLBuf< 12 >.
Definition at line 500 of file reg_bank.hh.
|
inlineprotected |
This method exists so that derived classes that need to initialize their buffers before they can be set can do so.
buf | The pointer to the backing buffer. |
Definition at line 515 of file reg_bank.hh.
References gem5::RegisterBank< BankByteOrder >::RegisterBuf::_ptr.
Referenced by gem5::RegisterBank< BankByteOrder >::RegisterLBuf< BufBytes >::RegisterLBuf().
|
inlineoverridevirtual |
Implements gem5::RegisterBank< BankByteOrder >::RegisterBase.
Reimplemented in gem5::RegisterBank< BankByteOrder >::RegisterLBuf< BufBytes >, gem5::RegisterBank< BankByteOrder >::RegisterLBuf< 0x100 >, gem5::RegisterBank< BankByteOrder >::RegisterLBuf< 0x80 >, and gem5::RegisterBank< BankByteOrder >::RegisterLBuf< 12 >.
Definition at line 501 of file reg_bank.hh.
|
inlineoverridevirtual |
Implements gem5::RegisterBank< BankByteOrder >::RegisterBase.
Definition at line 483 of file reg_bank.hh.
References gem5::RegisterBank< BankByteOrder >::RegisterBase::size(), and gem5::RegisterBank< BankByteOrder >::RegisterBuf::write().
Referenced by gem5::RegisterBank< BankByteOrder >::RegisterBuf::write().
|
inlineoverridevirtual |
Implements gem5::RegisterBank< BankByteOrder >::RegisterBase.
Definition at line 485 of file reg_bank.hh.
References gem5::RegisterBank< BankByteOrder >::RegisterBuf::_ptr, gem5::ArmISA::offset, and gem5::RegisterBank< BankByteOrder >::RegisterBase::size().
|
private |
Definition at line 476 of file reg_bank.hh.
Referenced by gem5::RegisterBank< BankByteOrder >::RegisterBuf::read(), gem5::RegisterBank< BankByteOrder >::RegisterBuf::setBuffer(), and gem5::RegisterBank< BankByteOrder >::RegisterBuf::write().