122 #include <sys/signal.h> 137 #include "debug/GDBAcc.hh" 138 #include "debug/GDBMisc.hh" 150 warn_once(
"Breakpoints do not work in Alpha PAL mode.\n" 151 " See PCEventQueue::doService() in cpu/pc_event.cc.\n");
161 panic(
"acc function needs to be rewritten for SE mode\n");
171 DPRINTF(GDBAcc,
"acc: Mapping is valid K0SEG <= " 172 "%#x < K0SEG + size\n", va);
175 DPRINTF(GDBAcc,
"acc: Mapping invalid %#x " 176 "> K0SEG + size\n", va);
189 if (
PcPAL(va) || va < 0x10000)
196 DPRINTF(GDBAcc,
"acc: %#x pte is invalid\n", va);
200 }
while (va < last_va);
202 DPRINTF(GDBAcc,
"acc: %#x mapping is valid\n", va);
209 DPRINTF(GDBAcc,
"getRegs in remotegdb \n");
214 for (
int i = 0;
i < 32; ++
i)
217 for (
int i = 0;
i < 32; ++
i)
221 for (
int i = 0;
i < 32; ++
i)
232 DPRINTF(GDBAcc,
"setRegs in remotegdb \n");
235 for (
int i = 0;
i < 32; ++
i) {
239 for (
int i = 0;
i < 32; ++
i) {
#define panic(...)
This implements a cprintf based panic() function.
virtual TheISA::PCState pcState() const =0
virtual RegVal readIntReg(RegIndex reg_idx) const =0
const int reg_redir[NumIntRegs]
bool FullSystem
The FullSystem variable can be used to determine the current mode of simulation.
Overload hash function for BasicBlockRange type.
virtual void setFloatReg(RegIndex reg_idx, RegVal val)=0
ThreadContext is the external interface to all thread state for anything outside of the CPU...
const int NumFloatArchRegs
virtual RegVal readFloatReg(RegIndex reg_idx) const =0
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.
PageTableEntry kernel_pte_lookup(PortProxy &mem, Addr ptbr, VAddr vaddr)
virtual void setIntReg(RegIndex reg_idx, RegVal val)=0
Addr TruncPage(Addr addr)
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
ThreadContext * context()
virtual RegVal readMiscRegNoEffect(RegIndex misc_reg) const =0
BaseGdbRegCache * gdbRegs() override
bool acc(Addr addr, size_t len) override
Addr RoundPage(Addr addr)
void setRegs(ThreadContext *) const
Set the ThreadContext's registers from the values in the raw buffer.