Go to the documentation of this file.
135 #include <sys/signal.h>
140 #include "arch/power/gdb-xml/gdb_xml_power64_core.hh"
141 #include "arch/power/gdb-xml/gdb_xml_power_core.hh"
142 #include "arch/power/gdb-xml/gdb_xml_power_fpu.hh"
143 #include "arch/power/gdb-xml/gdb_xml_powerpc_32.hh"
144 #include "arch/power/gdb-xml/gdb_xml_powerpc_64.hh"
148 #include "debug/GDBAcc.hh"
149 #include "debug/GDBMisc.hh"
156 using namespace PowerISA;
159 : BaseRemoteGDB(_system, _listen_config),
160 regCache32(this), regCache64(this)
182 DPRINTF(GDBAcc,
"getRegs in remotegdb \n");
185 ByteOrder order = (msr.le ? ByteOrder::little : ByteOrder::big);
211 DPRINTF(GDBAcc,
"setRegs in remotegdb \n");
214 ByteOrder order = (msr.le ? ByteOrder::little : ByteOrder::big);
237 DPRINTF(GDBAcc,
"getRegs in remotegdb \n");
240 ByteOrder order = (msr.le ? ByteOrder::little : ByteOrder::big);
265 DPRINTF(GDBAcc,
"setRegs in remotegdb \n");
268 ByteOrder order = (msr.le ? ByteOrder::little : ByteOrder::big);
301 #define GDB_XML(x, s) \
302 { x, std::string(reinterpret_cast<const char *>(Blobs::s), \
304 static const std::map<std::string, std::string> annexMap32{
305 GDB_XML(
"target.xml", gdb_xml_powerpc_32),
306 GDB_XML(
"power-core.xml", gdb_xml_power_core),
307 GDB_XML(
"power-fpu.xml", gdb_xml_power_fpu)
309 static const std::map<std::string, std::string> annexMap64{
310 GDB_XML(
"target.xml", gdb_xml_powerpc_64),
311 GDB_XML(
"power64-core.xml", gdb_xml_power64_core),
312 GDB_XML(
"power-fpu.xml", gdb_xml_power_fpu)
317 auto& annexMap = msr.sf ? annexMap64 : annexMap32;
318 auto it = annexMap.find(annex);
319 if (it == annexMap.end())
Addr instAddr() const
Returns the memory address of the instruction this PC points to.
virtual RegVal getReg(const RegId ®) const
static void output(const char *filename)
virtual const PCStateBase & pcState() const =0
constexpr RegClass intRegClass(IntRegClass, IntRegClassName, int_reg::NumRegs, debug::IntRegs)
const Entry * lookup(Addr vaddr)
Lookup function.
Concrete subclasses of this abstract class represent how the register values are transmitted on the w...
RemoteGDB(System *_system, ListenSocketConfig _listen_config)
bool getXferFeaturesRead(const std::string &annex, std::string &output)
Get an XML target description.
ThreadContext is the external interface to all thread state for anything outside of the CPU.
EmulationPageTable * pTable
T gtoh(T value, ByteOrder guest_byte_order)
T htog(T value, ByteOrder guest_byte_order)
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
constexpr RegClass floatRegClass(FloatRegClass, FloatRegClassName, float_reg::NumRegs, debug::FloatRegs)
virtual Process * getProcessPtr()=0
bool FullSystem
The FullSystem variable can be used to determine the current mode of simulation.
BaseGdbRegCache * gdbRegs()
#define panic_if(cond,...)
Conditional panic macro that checks the supplied condition and only panics if the condition is true a...
ThreadContext * context()
bool acc(Addr addr, size_t len)
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Register ID: describe an architectural register with its class and index.
virtual void setReg(const RegId ®, RegVal val)
Generated on Sun Jul 30 2023 01:56:47 for gem5 by doxygen 1.8.17