gem5  v20.1.0.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
PowerISA::RemoteGDB::PowerGdbRegCache Class Reference

#include <remote_gdb.hh>

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

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 BaseGdbRegCache
 BaseGdbRegCache (BaseRemoteGDB *g)
 
virtual ~BaseGdbRegCache ()
 

Private Member Functions

 BaseGdbRegCache (BaseRemoteGDB *g)
 

Private Attributes

struct {
   uint32_t   gpr [NumIntArchRegs]
 
   uint64_t   fpr [NumFloatArchRegs]
 
   uint32_t   pc
 
   uint32_t   msr
 
   uint32_t   cr
 
   uint32_t   lr
 
   uint32_t   ctr
 
   uint32_t   xer
 
r
 

Additional Inherited Members

- Protected Attributes inherited from BaseGdbRegCache
BaseRemoteGDBgdb
 

Detailed Description

Definition at line 48 of file remote_gdb.hh.

Member Function Documentation

◆ BaseGdbRegCache()

BaseGdbRegCache::BaseGdbRegCache
inlineprivate

Definition at line 119 of file remote_gdb.hh.

◆ data()

char* 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 BaseGdbRegCache.

Definition at line 63 of file remote_gdb.hh.

References r.

◆ getRegs()

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

◆ name()

const std::string 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 BaseGdbRegCache.

Definition at line 68 of file remote_gdb.hh.

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

◆ setRegs()

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

◆ size()

size_t 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 BaseGdbRegCache.

Definition at line 64 of file remote_gdb.hh.

References r.

Member Data Documentation

◆ cr

uint32_t PowerISA::RemoteGDB::PowerGdbRegCache::cr

Definition at line 57 of file remote_gdb.hh.

◆ ctr

uint32_t PowerISA::RemoteGDB::PowerGdbRegCache::ctr

Definition at line 59 of file remote_gdb.hh.

◆ fpr

uint64_t PowerISA::RemoteGDB::PowerGdbRegCache::fpr[NumFloatArchRegs]

Definition at line 54 of file remote_gdb.hh.

◆ gpr

uint32_t PowerISA::RemoteGDB::PowerGdbRegCache::gpr[NumIntArchRegs]

Definition at line 53 of file remote_gdb.hh.

◆ lr

uint32_t PowerISA::RemoteGDB::PowerGdbRegCache::lr

Definition at line 58 of file remote_gdb.hh.

◆ msr

uint32_t PowerISA::RemoteGDB::PowerGdbRegCache::msr

Definition at line 56 of file remote_gdb.hh.

◆ pc

uint32_t PowerISA::RemoteGDB::PowerGdbRegCache::pc

Definition at line 55 of file remote_gdb.hh.

◆ r

struct { ... } PowerISA::RemoteGDB::PowerGdbRegCache::r

Referenced by data(), getRegs(), and size().

◆ xer

uint32_t PowerISA::RemoteGDB::PowerGdbRegCache::xer

Definition at line 60 of file remote_gdb.hh.


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

Generated on Wed Sep 30 2020 14:03:07 for gem5 by doxygen 1.8.17