aboutsummaryrefslogtreecommitdiff
path: root/sim/mips/sim-main.h
diff options
context:
space:
mode:
authorRon Unrau <runrau@cygnus>1998-06-16 20:30:20 +0000
committerRon Unrau <runrau@cygnus>1998-06-16 20:30:20 +0000
commit2905d173c50c7371d7158fda09fbb6ede04acfb0 (patch)
treed65da397c772d1349496df63c37b0c87369231ec /sim/mips/sim-main.h
parentd80e0c96ef6be8349b9adbd7fe4e18874eb70d7c (diff)
downloadgdb-2905d173c50c7371d7158fda09fbb6ede04acfb0.zip
gdb-2905d173c50c7371d7158fda09fbb6ede04acfb0.tar.gz
gdb-2905d173c50c7371d7158fda09fbb6ede04acfb0.tar.bz2
* sky-pke.c(read_pke_pc): return source address of current pc
* sky-pke.c(read_pke_pcx): return index of current pc * sky-pke.h: export read_pke_pcx * interp.c(sim_fetch_registers): read pke pc/pcx * sky-libvpe.c: track name change from GDB * sim-main.h: add vif memory based pc - extend gdb comm area for fifo breakpoints - define SIM_ENGINE_RESTART_HOOK * sky-gdb.c: add support for VIF breakpoints
Diffstat (limited to 'sim/mips/sim-main.h')
-rw-r--r--sim/mips/sim-main.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/sim/mips/sim-main.h b/sim/mips/sim-main.h
index ad55008..9102bdc 100644
--- a/sim/mips/sim-main.h
+++ b/sim/mips/sim-main.h
@@ -565,7 +565,7 @@ struct _sim_cpu {
#define NUM_VU_REGS 153
#define NUM_VU_INTEGER_REGS 16
-#define NUM_VIF_REGS 25
+#define NUM_VIF_REGS 26
#define FIRST_VEC_REG 25
#define NUM_R5900_REGS 128
@@ -991,6 +991,13 @@ char* pr_uword64 PARAMS ((uword64 addr));
void sky_sim_engine_halt PARAMS ((SIM_DESC sd, sim_cpu *last, sim_cia cia));
#define SIM_ENGINE_HALT_HOOK(sd, last, cia) sky_sim_engine_halt(sd, last, cia);
+#ifdef SIM_ENGINE_RESTART_HOOK
+#undef SIM_ENGINE_RESTART_HOOK
+#endif
+
+void sky_sim_engine_restart PARAMS ((SIM_DESC sd, sim_cpu *last, sim_cia cia));
+#define SIM_ENGINE_RESTART_HOOK(sd, L, pc) sky_sim_engine_restart(sd, L, pc);
+
#ifndef TM_TXVU_H /* In case GDB hasn't been configured yet */
enum txvu_cpu_context
{
@@ -1010,7 +1017,13 @@ enum txvu_cpu_context
/* Memory address containing last device to execute */
#define LAST_DEVICE GDB_COMM_AREA
-#define BREAK_MASK 0x02 /* Breakpoint bit is #57 */
+/* The FIFO breakpoint count and table */
+#define FIFO_BPT_CNT (GDB_COMM_AREA + 4)
+#define FIFO_BPT_TBL (GDB_COMM_AREA + 8)
+
+#define TXVU_VU_BRK_MASK 0x02 /* Breakpoint bit is #57 for VU insns */
+#define TXVU_VIF_BRK_MASK 0x0f /* Breakpoint opcode for VIF insns */
+
#endif /* !TM_TXVU_H */
#endif /* TARGET_SKY */
/* end-sanitize-sky */