aboutsummaryrefslogtreecommitdiff
path: root/sim/mips/sim-main.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-06-12 15:51:35 +0545
committerMike Frysinger <vapier@gentoo.org>2015-06-12 06:28:17 -0400
commit29bc024d07fe480cd37f36097f23d5585b15e71c (patch)
treed0995562b1a832be100a521ffaf80c83b2b005c2 /sim/mips/sim-main.h
parentbffcfec8c3a15b669579b67d5b626c4d14b2b6df (diff)
downloadgdb-29bc024d07fe480cd37f36097f23d5585b15e71c.zip
gdb-29bc024d07fe480cd37f36097f23d5585b15e71c.tar.gz
gdb-29bc024d07fe480cd37f36097f23d5585b15e71c.tar.bz2
sim: mips: switch to common WITH_TRACE_ANY_P
We want to add new common trace helpers including "TRACE", so change the mips one to the new WITH_TRACE_ANY_P macro since they do the same thing.
Diffstat (limited to 'sim/mips/sim-main.h')
-rw-r--r--sim/mips/sim-main.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/mips/sim-main.h b/sim/mips/sim-main.h
index c87b8e6..8d698ad 100644
--- a/sim/mips/sim-main.h
+++ b/sim/mips/sim-main.h
@@ -957,8 +957,12 @@ INLINE_SIM_MAIN (unsigned16) ifetch16 (SIM_DESC sd, sim_cpu *cpu, address_word c
#define IMEM16(CIA) ifetch16 (SD, CPU, (CIA), ((CIA) & ~1))
#define IMEM16_IMMED(CIA,NR) ifetch16 (SD, CPU, (CIA), ((CIA) & ~1) + 2 * (NR))
+#if WITH_TRACE_ANY_P
void dotrace (SIM_DESC sd, sim_cpu *cpu, FILE *tracefh, int type, SIM_ADDR address, int width, char *comment, ...);
extern FILE *tracefh;
+#else
+#define dotrace(sd, cpu, tracefh, type, address, width, comment, ...)
+#endif
extern int DSPLO_REGNUM[4];
extern int DSPHI_REGNUM[4];