gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::SparcISA::RemoteGDB::SPARCGdbRegCache Class Reference

#include <remote_gdb.hh>

Inheritance diagram for gem5::SparcISA::RemoteGDB::SPARCGdbRegCache:
gem5::BaseGdbRegCache

Public Member Functions

char * data () const
 Return the pointer to the raw bytes buffer containing the register values.
 
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).
 
void getRegs (ThreadContext *)
 Fill the raw buffer from the registers in the ThreadContext.
 
void setRegs (ThreadContext *) const
 Set the ThreadContext's registers from the values in the raw buffer.
 
const std::string name () const
 Return the name to use in places like DPRINTF.
 
- Public Member Functions inherited from gem5::BaseGdbRegCache
 BaseGdbRegCache (BaseRemoteGDB *g)
 
virtual ~BaseGdbRegCache ()
 

Private Member Functions

 BaseGdbRegCache (BaseRemoteGDB *g)
 

Private Attributes

struct { 
 
   uint32_t   gpr [32] 
 
   uint32_t   hole [32] 
 
   uint32_t   y 
 
   uint32_t   psr 
 
   uint32_t   wim 
 
   uint32_t   tbr 
 
   uint32_t   pc 
 
   uint32_t   npc 
 
   uint32_t   fsr 
 
   uint32_t   csr 
 
r 
 

Additional Inherited Members

- Protected Attributes inherited from gem5::BaseGdbRegCache
BaseRemoteGDBgdb
 

Detailed Description

Definition at line 51 of file remote_gdb.hh.

Member Function Documentation

◆ BaseGdbRegCache()

gem5::BaseGdbRegCache::BaseGdbRegCache ( BaseRemoteGDB * g)
inlineprivate

Definition at line 134 of file remote_gdb.hh.

◆ data()

char * gem5::SparcISA::RemoteGDB::SPARCGdbRegCache::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 69 of file remote_gdb.hh.

References r.

◆ getRegs()

◆ name()

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

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

◆ setRegs()

void gem5::RemoteGDB::SPARCGdbRegCache::setRegs ( ThreadContext * ) const
virtual

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

Implements gem5::BaseGdbRegCache.

Definition at line 215 of file remote_gdb.cc.

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

◆ size()

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

References r.

Member Data Documentation

◆ csr

uint32_t gem5::SparcISA::RemoteGDB::SPARCGdbRegCache::csr

Definition at line 66 of file remote_gdb.hh.

◆ fsr

uint32_t gem5::SparcISA::RemoteGDB::SPARCGdbRegCache::fsr

Definition at line 65 of file remote_gdb.hh.

◆ gpr

uint32_t gem5::SparcISA::RemoteGDB::SPARCGdbRegCache::gpr[32]

Definition at line 57 of file remote_gdb.hh.

◆ hole

uint32_t gem5::SparcISA::RemoteGDB::SPARCGdbRegCache::hole[32]

Definition at line 58 of file remote_gdb.hh.

◆ npc

uint32_t gem5::SparcISA::RemoteGDB::SPARCGdbRegCache::npc

Definition at line 64 of file remote_gdb.hh.

◆ pc

uint32_t gem5::SparcISA::RemoteGDB::SPARCGdbRegCache::pc

Definition at line 63 of file remote_gdb.hh.

◆ psr

uint32_t gem5::SparcISA::RemoteGDB::SPARCGdbRegCache::psr

Definition at line 60 of file remote_gdb.hh.

◆ [struct]

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

Referenced by data(), and size().

◆ tbr

uint32_t gem5::SparcISA::RemoteGDB::SPARCGdbRegCache::tbr

Definition at line 62 of file remote_gdb.hh.

◆ wim

uint32_t gem5::SparcISA::RemoteGDB::SPARCGdbRegCache::wim

Definition at line 61 of file remote_gdb.hh.

◆ y

uint32_t gem5::SparcISA::RemoteGDB::SPARCGdbRegCache::y

Definition at line 59 of file remote_gdb.hh.


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

Generated on Tue Jun 18 2024 16:24:23 for gem5 by doxygen 1.11.0