aboutsummaryrefslogtreecommitdiff
path: root/sim/tic80/cpu.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-05-15 02:21:11 +0000
committerAndrew Cagney <cagney@redhat.com>1997-05-15 02:21:11 +0000
commitaa3a044769b6cc60d1505aedd70c2776fb4f42be (patch)
treeb43d0ca5bb0288b8c546e49041db1956f7dc8eaf /sim/tic80/cpu.h
parent2310e3c2b5591bfe2459bf6fb36c4ae147c94982 (diff)
downloadgdb-aa3a044769b6cc60d1505aedd70c2776fb4f42be.zip
gdb-aa3a044769b6cc60d1505aedd70c2776fb4f42be.tar.gz
gdb-aa3a044769b6cc60d1505aedd70c2776fb4f42be.tar.bz2
Fix double conversion problem.
Diffstat (limited to 'sim/tic80/cpu.h')
-rw-r--r--sim/tic80/cpu.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/sim/tic80/cpu.h b/sim/tic80/cpu.h
index a770192..0027af0 100644
--- a/sim/tic80/cpu.h
+++ b/sim/tic80/cpu.h
@@ -161,12 +161,10 @@ struct _sim_cpu {
extern char *tic80_trace_alu3 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_fpu2i PARAMS ((SIM_DESC, sim_cpu *, sim_cia, int,
- unsigned32, sim_fpu, sim_fpu));
+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 char *tic80_trace_nop PARAMS ((int));
extern char *tic80_trace_sink1 PARAMS ((int, unsigned32));
extern char *tic80_trace_sink2 PARAMS ((int, unsigned32, unsigned32));
@@ -217,6 +215,13 @@ do { \
} \
} while (0)
+#define TRACE_FPU1(indx, result) \
+do { \
+ if (TRACE_FPU_P (CPU)) { \
+ tic80_trace_fpu1 (SD, CPU, cia, indx, result); \
+ } \
+} while (0)
+
#define TRACE_FPU2I(indx, result, input1, input2) \
do { \
if (TRACE_FPU_P (CPU)) { \