33#ifndef __ARCH_POWER_REMOTE_GDB_HH__
34#define __ARCH_POWER_REMOTE_GDB_HH__
71 char *
data()
const {
return (
char *)&
r; }
72 size_t size()
const {
return sizeof(
r); }
78 return gdb->
name() +
".PowerGdbRegCache";
100 char *
data()
const {
return (
char *)&
r; }
101 size_t size()
const {
return sizeof(
r); }
107 return gdb->
name() +
".Power64GdbRegCache";
121 return {
"qXfer:features:read+"};
Concrete subclasses of this abstract class represent how the register values are transmitted on the w...
void getRegs(ThreadContext *)
Fill the raw buffer from the registers in the ThreadContext.
struct gem5::PowerISA::RemoteGDB::Power64GdbRegCache::GEM5_PACKED r
char * data() const
Return the pointer to the raw bytes buffer containing the register values.
const std::string name() const
Return the name to use in places like DPRINTF.
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 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.
void setRegs(ThreadContext *) const
Set the ThreadContext's registers from the values in the raw buffer.
char * data() const
Return the pointer to the raw bytes buffer containing the register values.
struct gem5::PowerISA::RemoteGDB::PowerGdbRegCache::GEM5_PACKED r
void getRegs(ThreadContext *)
Fill the raw buffer from the registers in the ThreadContext.
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).
PowerGdbRegCache regCache32
Power64GdbRegCache regCache64
RemoteGDB(System *_system, ListenSocketConfig _listen_config)
bool getXferFeaturesRead(const std::string &annex, std::string &output)
Get an XML target description.
bool acc(Addr addr, size_t len)
BaseGdbRegCache * gdbRegs()
std::vector< std::string > availableFeatures() const
ThreadContext is the external interface to all thread state for anything outside of the CPU.
BaseGdbRegCache(BaseRemoteGDB *g)
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
static void output(const char *filename)
uint64_t gpr[int_reg::NumArchRegs]
uint64_t fpr[float_reg::NumArchRegs]
uint32_t gpr[int_reg::NumArchRegs]
uint64_t fpr[float_reg::NumArchRegs]