diff options
author | Michael Meissner <gnu@the-meissners.org> | 1998-01-28 23:48:13 +0000 |
---|---|---|
committer | Michael Meissner <gnu@the-meissners.org> | 1998-01-28 23:48:13 +0000 |
commit | 241b462435f038f9814d25e69974e712b8ad6548 (patch) | |
tree | bf4d0a38184c157c4b47bc2727f31329402148b9 /sim/tic80/cpu.h | |
parent | e086cc6caf8276bf877ce97b1f0aefd9adf23dbc (diff) | |
download | gdb-241b462435f038f9814d25e69974e712b8ad6548.zip gdb-241b462435f038f9814d25e69974e712b8ad6548.tar.gz gdb-241b462435f038f9814d25e69974e712b8ad6548.tar.bz2 |
Print compare bits in human readible form
Diffstat (limited to 'sim/tic80/cpu.h')
-rw-r--r-- | sim/tic80/cpu.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/sim/tic80/cpu.h b/sim/tic80/cpu.h index f1780fa..4124512 100644 --- a/sim/tic80/cpu.h +++ b/sim/tic80/cpu.h @@ -1,5 +1,5 @@ /* TIc80 Simulator. - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997, 1998 Free Software Foundation, Inc. Contributed by Cygnus Support. This file is part of GDB, the GNU debugger. @@ -162,12 +162,14 @@ struct _sim_cpu { #if defined(WITH_TRACE) extern char *tic80_trace_alu3 PARAMS ((int, unsigned32, unsigned32, unsigned32)); +extern char *tic80_trace_cmp PARAMS ((int, unsigned32, unsigned32, unsigned32)); extern char *tic80_trace_alu2 PARAMS ((int, unsigned32, unsigned32)); extern char *tic80_trace_shift PARAMS ((int, unsigned32, unsigned32, int, int, int, int, int)); extern void tic80_trace_fpu3 PARAMS ((SIM_DESC, sim_cpu *, sim_cia, int, sim_fpu, sim_fpu, sim_fpu)); extern void tic80_trace_fpu2 PARAMS ((SIM_DESC, sim_cpu *, sim_cia, int, sim_fpu, sim_fpu)); extern void tic80_trace_fpu1 PARAMS ((SIM_DESC, sim_cpu *, sim_cia, int, sim_fpu)); extern void tic80_trace_fpu2i PARAMS ((SIM_DESC, sim_cpu *, sim_cia, int, unsigned32, sim_fpu, sim_fpu)); +extern void tic80_trace_fpu2cmp PARAMS ((SIM_DESC, sim_cpu *, sim_cia, int, unsigned32, sim_fpu, sim_fpu)); extern char *tic80_trace_nop PARAMS ((int)); extern char *tic80_trace_sink1 PARAMS ((int, unsigned32)); extern char *tic80_trace_sink2 PARAMS ((int, unsigned32, unsigned32)); @@ -185,6 +187,15 @@ do { \ } \ } while (0) +#define TRACE_CMP(indx, result, input1, input2) \ +do { \ + if (TRACE_ALU_P (CPU)) { \ + trace_one_insn (SD, CPU, cia.ip, 1, itable[indx].file, \ + itable[indx].line_nr, "alu", \ + tic80_trace_cmp (indx, result, input1, input2)); \ + } \ +} while (0) + #define TRACE_ALU2(indx, result, input) \ do { \ if (TRACE_ALU_P (CPU)) { \ @@ -236,6 +247,14 @@ do { \ } \ } while (0) +#define TRACE_FPU2CMP(result, input1, input2) \ +do { \ + if (TRACE_FPU_P (CPU)) { \ + tic80_trace_fpu2cmp (SD, CPU, cia, MY_INDEX, \ + result, input1, input2); \ + } \ +} while (0) + #define TRACE_NOP(indx) \ do { \ if (TRACE_ALU_P (CPU)) { \ |