gem5  v22.1.0.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
gem5::SparcISA::RemoteGDB::SPARC64GdbRegCache Class Reference

#include <remote_gdb.hh>

Inheritance diagram for gem5::SparcISA::RemoteGDB::SPARC64GdbRegCache:
gem5::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 gem5::BaseGdbRegCache
 BaseGdbRegCache (BaseRemoteGDB *g)
 
virtual ~BaseGdbRegCache ()
 

Private Member Functions

 BaseGdbRegCache (BaseRemoteGDB *g)
 

Private Attributes

struct {
   uint64_t   gpr [32]
 
   uint64_t   fpr [32]
 
   uint64_t   pc
 
   uint64_t   npc
 
   uint64_t   state
 
   uint64_t   fsr
 
   uint64_t   fprs
 
   uint64_t   y
 
r
 

Additional Inherited Members

- Protected Attributes inherited from gem5::BaseGdbRegCache
BaseRemoteGDBgdb
 

Detailed Description

Definition at line 80 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::SparcISA::RemoteGDB::SPARC64GdbRegCache::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 96 of file remote_gdb.hh.

References r.

◆ getRegs()

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

◆ name()

const std::string gem5::SparcISA::RemoteGDB::SPARC64GdbRegCache::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 101 of file remote_gdb.hh.

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

◆ setRegs()

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

Set the ThreadContext's registers from the values in the raw buffer.

Implements gem5::BaseGdbRegCache.

Definition at line 231 of file remote_gdb.cc.

References gem5::ArmISA::i, gem5::ArmISA::intRegClass, gem5::MipsISA::pc, gem5::ThreadContext::pcState(), gem5::VegaISA::r, and gem5::ThreadContext::setReg().

◆ size()

size_t gem5::SparcISA::RemoteGDB::SPARC64GdbRegCache::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 97 of file remote_gdb.hh.

References r.

Member Data Documentation

◆ fpr

uint64_t gem5::SparcISA::RemoteGDB::SPARC64GdbRegCache::fpr[32]

Definition at line 87 of file remote_gdb.hh.

◆ fprs

uint64_t gem5::SparcISA::RemoteGDB::SPARC64GdbRegCache::fprs

Definition at line 92 of file remote_gdb.hh.

◆ fsr

uint64_t gem5::SparcISA::RemoteGDB::SPARC64GdbRegCache::fsr

Definition at line 91 of file remote_gdb.hh.

◆ gpr

uint64_t gem5::SparcISA::RemoteGDB::SPARC64GdbRegCache::gpr[32]

Definition at line 86 of file remote_gdb.hh.

◆ npc

uint64_t gem5::SparcISA::RemoteGDB::SPARC64GdbRegCache::npc

Definition at line 89 of file remote_gdb.hh.

◆ pc

uint64_t gem5::SparcISA::RemoteGDB::SPARC64GdbRegCache::pc

Definition at line 88 of file remote_gdb.hh.

◆ 

struct { ... } gem5::SparcISA::RemoteGDB::SPARC64GdbRegCache::r

Referenced by data(), and size().

◆ state

uint64_t gem5::SparcISA::RemoteGDB::SPARC64GdbRegCache::state

Definition at line 90 of file remote_gdb.hh.

◆ y

uint64_t gem5::SparcISA::RemoteGDB::SPARC64GdbRegCache::y

Definition at line 93 of file remote_gdb.hh.


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

Generated on Wed Dec 21 2022 10:24:25 for gem5 by doxygen 1.9.1