aboutsummaryrefslogtreecommitdiff
path: root/sim/tic80/cpu.h
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1998-02-17 19:38:48 +0000
committerMichael Meissner <gnu@the-meissners.org>1998-02-17 19:38:48 +0000
commit9902213101350fc9ad9386879e28aee7895feae8 (patch)
treec273d25dfc4a116629124885e7b73c1605d63ccb /sim/tic80/cpu.h
parent5290378abc09ab96d8a25be05c07bcfc1b23caab (diff)
downloadgdb-9902213101350fc9ad9386879e28aee7895feae8.zip
gdb-9902213101350fc9ad9386879e28aee7895feae8.tar.gz
gdb-9902213101350fc9ad9386879e28aee7895feae8.tar.bz2
Better tracing for conditional branches
Diffstat (limited to 'sim/tic80/cpu.h')
-rw-r--r--sim/tic80/cpu.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/sim/tic80/cpu.h b/sim/tic80/cpu.h
index d8cfd0e..29da816 100644
--- a/sim/tic80/cpu.h
+++ b/sim/tic80/cpu.h
@@ -175,7 +175,7 @@ extern char *tic80_trace_nop PARAMS ((int));
extern char *tic80_trace_sink1 PARAMS ((int, unsigned32));
extern char *tic80_trace_sink2 PARAMS ((int, unsigned32, unsigned32));
extern char *tic80_trace_sink3 PARAMS ((int, unsigned32, unsigned32, unsigned32));
-extern char *tic80_trace_cond_br PARAMS ((int, int, unsigned32, unsigned32));
+extern char *tic80_trace_cond_br PARAMS ((int, int, unsigned32, unsigned32, int, int));
extern char *tic80_trace_ucond_br PARAMS ((int, unsigned32));
extern void tic80_trace_ldst PARAMS ((SIM_DESC, sim_cpu *, sim_cia, int, int, int, int, unsigned32, unsigned32, unsigned32));
@@ -292,12 +292,13 @@ do { \
} \
} while (0)
-#define TRACE_COND_BR(indx, jump_p, cond, target) \
+#define TRACE_COND_BR(indx, jump_p, cond, target, size, code) \
do { \
if (TRACE_BRANCH_P (CPU)) { \
trace_one_insn (SD, CPU, cia.ip, 1, itable[indx].file, \
itable[indx].line_nr, "branch", \
- tic80_trace_cond_br (indx, jump_p, cond, target)); \
+ tic80_trace_cond_br (indx, jump_p, cond, target, \
+ size, code)); \
} \
} while (0)
@@ -337,7 +338,7 @@ do { \
#define TRACE_SINK1(indx, input)
#define TRACE_SINK2(indx, input1, input2)
#define TRACE_SINK3(indx, input1, input2, input3)
-#define TRACE_COND_BR(indx, jump_p, cond, target)
+#define TRACE_COND_BR(indx, jump_p, cond, target, size, code)
#define TRACE_UCOND_BR(indx, target)
#define TRACE_LD(m, s, result, addr1, addr2)
#define TRACE_ST(m, s, value, addr1, addr2)