aboutsummaryrefslogtreecommitdiff
path: root/sim/tic80/misc.c
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/misc.c
parent2310e3c2b5591bfe2459bf6fb36c4ae147c94982 (diff)
downloadgdb-aa3a044769b6cc60d1505aedd70c2776fb4f42be.zip
gdb-aa3a044769b6cc60d1505aedd70c2776fb4f42be.tar.gz
gdb-aa3a044769b6cc60d1505aedd70c2776fb4f42be.tar.bz2
Fix double conversion problem.
Diffstat (limited to 'sim/tic80/misc.c')
-rw-r--r--sim/tic80/misc.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/sim/tic80/misc.c b/sim/tic80/misc.c
index 33a2785b..a9ce496 100644
--- a/sim/tic80/misc.c
+++ b/sim/tic80/misc.c
@@ -267,6 +267,26 @@ tic80_trace_fpu2 (SIM_DESC sd,
SIZE_HEX + SIZE_DECIMAL, sim_fpu_2d (result));
}
+/* Trace the result of an FPU operation with 1 floating point input and a floating point output */
+void
+tic80_trace_fpu1 (SIM_DESC sd,
+ sim_cpu *cpu,
+ sim_cia cia,
+ int indx,
+ sim_fpu result)
+{
+ if (!tic80_size_name)
+ tic80_init_trace ();
+
+ trace_one_insn (sd, cpu, cia.ip, 1,
+ itable[indx].file, itable[indx].line_nr, "fpu",
+ "%-*s %-*s %-*s => %*g",
+ tic80_size_name, itable[indx].name,
+ SIZE_HEX + SIZE_DECIMAL + 3, "",
+ SIZE_HEX + SIZE_DECIMAL + 3, "",
+ SIZE_HEX + SIZE_DECIMAL, sim_fpu_2d (result));
+}
+
/* Trace the result of an FPU operation with 1 integer input and an integer output */
void
tic80_trace_fpu2i (SIM_DESC sd,