Go to the documentation of this file.
135 #include <sys/signal.h>
141 #include "blobs/gdb_xml_power64_core.hh"
142 #include "blobs/gdb_xml_power_core.hh"
143 #include "blobs/gdb_xml_power_fpu.hh"
144 #include "blobs/gdb_xml_powerpc_32.hh"
145 #include "blobs/gdb_xml_powerpc_64.hh"
147 #include "debug/GDBAcc.hh"
148 #include "debug/GDBMisc.hh"
155 using namespace PowerISA;
158 : BaseRemoteGDB(_system, _port), regCache32(this), regCache64(this)
180 DPRINTF(GDBAcc,
"getRegs in remotegdb \n");
183 ByteOrder order = (msr.le ? ByteOrder::little : ByteOrder::big);
207 DPRINTF(GDBAcc,
"setRegs in remotegdb \n");
210 ByteOrder order = (msr.le ? ByteOrder::little : ByteOrder::big);
233 DPRINTF(GDBAcc,
"getRegs in remotegdb \n");
236 ByteOrder order = (msr.le ? ByteOrder::little : ByteOrder::big);
261 DPRINTF(GDBAcc,
"setRegs in remotegdb \n");
264 ByteOrder order = (msr.le ? ByteOrder::little : ByteOrder::big);
297 #define GDB_XML(x, s) \
298 { x, std::string(reinterpret_cast<const char *>(Blobs::s), \
300 static const std::map<std::string, std::string> annexMap32{
301 GDB_XML(
"target.xml", gdb_xml_powerpc_32),
302 GDB_XML(
"power-core.xml", gdb_xml_power_core),
303 GDB_XML(
"power-fpu.xml", gdb_xml_power_fpu)
305 static const std::map<std::string, std::string> annexMap64{
306 GDB_XML(
"target.xml", gdb_xml_powerpc_64),
307 GDB_XML(
"power64-core.xml", gdb_xml_power64_core),
308 GDB_XML(
"power-fpu.xml", gdb_xml_power_fpu)
313 auto& annexMap = msr.sf ? annexMap64 : annexMap32;
314 auto it = annexMap.find(annex);
315 if (it == annexMap.end())
virtual void setIntReg(RegIndex reg_idx, RegVal val)=0
const int NumFloatArchRegs
virtual RegVal readFloatReg(RegIndex reg_idx) const =0
static void output(const char *filename)
const Entry * lookup(Addr vaddr)
Lookup function.
Concrete subclasses of this abstract class represent how the register values are transmitted on the w...
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)
RemoteGDB(System *_system, int _port)
T htog(T value, ByteOrder guest_byte_order)
virtual void setFloatReg(RegIndex reg_idx, RegVal val)=0
virtual TheISA::PCState pcState() const =0
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
virtual RegVal readIntReg(RegIndex reg_idx) const =0
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....
Generated on Tue Sep 21 2021 12:24:40 for gem5 by doxygen 1.8.17