gem5  v21.1.0.2
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
gem5::PowerISA::RemoteGDB::PowerGdbRegCache Class Reference

#include <remote_gdb.hh>

Inheritance diagram for gem5::PowerISA::RemoteGDB::PowerGdbRegCache:
gem5::BaseGdbRegCache

Classes

struct  GEM5_PACKED
 

Public Member Functions

char * data () const
 Return the pointer to the raw bytes buffer containing the register values. More...
 
size_t size () const
 Return the size of the raw buffer, in bytes (i.e., half of the number of digits in the g/G packet). More...
 
void getRegs (ThreadContext *)
 Fill the raw buffer from the registers in the ThreadContext. More...
 
void setRegs (ThreadContext *) const
 Set the ThreadContext's registers from the values in the raw buffer. More...
 
const std::string name () const
 Return the name to use in places like DPRINTF. More...
 
- Public Member Functions inherited from gem5::BaseGdbRegCache
 BaseGdbRegCache (BaseRemoteGDB *g)
 
virtual ~BaseGdbRegCache ()
 

Private Member Functions

 BaseGdbRegCache (BaseRemoteGDB *g)
 

Private Attributes

struct gem5::PowerISA::RemoteGDB::PowerGdbRegCache::GEM5_PACKED r
 

Additional Inherited Members

- Protected Attributes inherited from gem5::BaseGdbRegCache
BaseRemoteGDBgdb
 

Detailed Description

Definition at line 53 of file remote_gdb.hh.

Member Function Documentation

◆ BaseGdbRegCache()

gem5::BaseGdbRegCache::BaseGdbRegCache
inlineprivate

Definition at line 134 of file remote_gdb.hh.

◆ data()

char* gem5::PowerISA::RemoteGDB::PowerGdbRegCache::data ( ) const
inlinevirtual

Return the pointer to the raw bytes buffer containing the register values.

Each byte of this buffer is literally encoded as two hex digits in the g or G RSP packet.

Implements gem5::BaseGdbRegCache.

Definition at line 71 of file remote_gdb.hh.

References r.

◆ getRegs()

void gem5::RemoteGDB::PowerGdbRegCache::getRegs ( ThreadContext )
virtual

◆ name()

const std::string gem5::PowerISA::RemoteGDB::PowerGdbRegCache::name ( ) const
inlinevirtual

Return the name to use in places like DPRINTF.

Having each concrete superclass redefine this member is useful in situations where the class of the regCache can change on the fly.

Implements gem5::BaseGdbRegCache.

Definition at line 76 of file remote_gdb.hh.

References gem5::BaseGdbRegCache::gdb, and gem5::BaseRemoteGDB::name().

◆ setRegs()

void gem5::RemoteGDB::PowerGdbRegCache::setRegs ( ThreadContext ) const
virtual

◆ size()

size_t gem5::PowerISA::RemoteGDB::PowerGdbRegCache::size ( ) const
inlinevirtual

Return the size of the raw buffer, in bytes (i.e., half of the number of digits in the g/G packet).

Implements gem5::BaseGdbRegCache.

Definition at line 72 of file remote_gdb.hh.

References r.

Member Data Documentation

◆ r

struct gem5::PowerISA::RemoteGDB::PowerGdbRegCache::GEM5_PACKED gem5::PowerISA::RemoteGDB::PowerGdbRegCache::r
private

Referenced by data(), and size().


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

Generated on Tue Sep 21 2021 12:31:50 for gem5 by doxygen 1.8.17