gem5 v24.0.0.0
|
#include <remote_gdb.hh>
Classes | |
struct | GEM5_PACKED |
Public Member Functions | |
char * | data () const override |
Return the pointer to the raw bytes buffer containing the register values. | |
size_t | size () const override |
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 *) override |
Fill the raw buffer from the registers in the ThreadContext. | |
void | setRegs (ThreadContext *) const override |
Set the ThreadContext's registers from the values in the raw buffer. | |
const std::string | name () const override |
Return the name to use in places like DPRINTF. | |
Public Member Functions inherited from gem5::BaseGdbRegCache | |
BaseGdbRegCache (BaseRemoteGDB *g) | |
virtual | ~BaseGdbRegCache () |
Protected Attributes | |
struct gem5::ArmISA::RemoteGDB::AArch32GdbRegCache::GEM5_PACKED | r |
Protected Attributes inherited from gem5::BaseGdbRegCache | |
BaseRemoteGDB * | gdb |
Private Member Functions | |
BaseGdbRegCache (BaseRemoteGDB *g) | |
Definition at line 68 of file remote_gdb.hh.
|
inlineprivate |
Definition at line 134 of file remote_gdb.hh.
|
inlineoverridevirtual |
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 80 of file remote_gdb.hh.
References r.
|
overridevirtual |
Fill the raw buffer from the registers in the ThreadContext.
Implements gem5::BaseGdbRegCache.
Definition at line 289 of file remote_gdb.cc.
References gem5::BaseRemoteGDB::context(), DPRINTF, gem5::ThreadContext::getReg(), gem5::ArmISA::i, gem5::PCStateBase::instAddr(), gem5::ArmISA::int_reg::Lr, gem5::ArmISA::MISCREG_CPSR, gem5::ArmISA::MISCREG_FPSCR, gem5::ThreadContext::pcState(), gem5::MipsISA::r, gem5::ArmISA::int_reg::R0, gem5::ArmISA::int_reg::R1, gem5::ArmISA::int_reg::R10, gem5::ArmISA::int_reg::R11, gem5::ArmISA::int_reg::R12, gem5::ArmISA::int_reg::R2, gem5::ArmISA::int_reg::R3, gem5::ArmISA::int_reg::R4, gem5::ArmISA::int_reg::R5, gem5::ArmISA::int_reg::R6, gem5::ArmISA::int_reg::R7, gem5::ArmISA::int_reg::R8, gem5::ArmISA::int_reg::R9, gem5::ThreadContext::readMiscRegNoEffect(), and gem5::ArmISA::int_reg::Sp.
|
inlineoverridevirtual |
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 85 of file remote_gdb.hh.
References gem5::BaseGdbRegCache::gdb, and gem5::BaseRemoteGDB::name().
|
overridevirtual |
Set the ThreadContext's registers from the values in the raw buffer.
Implements gem5::BaseGdbRegCache.
Definition at line 319 of file remote_gdb.cc.
References gem5::PCStateBase::as(), gem5::BaseRemoteGDB::context(), DPRINTF, gem5::ArmISA::int_reg::Lr, gem5::ArmISA::MISCREG_CPSR, gem5::ArmISA::MISCREG_FPSCR, gem5::ThreadContext::pcState(), gem5::MipsISA::r, gem5::ArmISA::int_reg::R0, gem5::ArmISA::int_reg::R1, gem5::ArmISA::int_reg::R10, gem5::ArmISA::int_reg::R11, gem5::ArmISA::int_reg::R12, gem5::ArmISA::int_reg::R2, gem5::ArmISA::int_reg::R3, gem5::ArmISA::int_reg::R4, gem5::ArmISA::int_reg::R5, gem5::ArmISA::int_reg::R6, gem5::ArmISA::int_reg::R7, gem5::ArmISA::int_reg::R8, gem5::ArmISA::int_reg::R9, gem5::GenericISA::SimplePCState< InstWidth >::set(), gem5::ThreadContext::setMiscReg(), gem5::ThreadContext::setMiscRegNoEffect(), gem5::ThreadContext::setReg(), and gem5::ArmISA::int_reg::Sp.
|
inlineoverridevirtual |
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 81 of file remote_gdb.hh.
References r.
|
protected |