diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-05-15 02:21:11 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-05-15 02:21:11 +0000 |
commit | aa3a044769b6cc60d1505aedd70c2776fb4f42be (patch) | |
tree | b43d0ca5bb0288b8c546e49041db1956f7dc8eaf /sim/tic80/misc.c | |
parent | 2310e3c2b5591bfe2459bf6fb36c4ae147c94982 (diff) | |
download | gdb-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.c | 20 |
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, |