]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2000-12-23 Ben Elliston <bje@redhat.com>
authorBen Elliston <bje@au.ibm.com>
Sat, 23 Dec 2000 21:52:14 +0000 (21:52 +0000)
committerBen Elliston <bje@au.ibm.com>
Sat, 23 Dec 2000 21:52:14 +0000 (21:52 +0000)
* cgen-trace.c (trace_result): Handle 'f' type operands; output
them to the trace stream using sim_fpu_printn_fpu. Include
"sim-fpu.h".

sim/common/ChangeLog
sim/common/cgen-trace.c

index c01bd9047d418613467bfd6c5ce5367e3a7732ac..1cbbf36e3bb71ebfc37f07b0ed1aa88bb6018e15 100644 (file)
@@ -1,3 +1,9 @@
+2000-12-23  Ben Elliston  <bje@redhat.com>
+
+       * cgen-trace.c (trace_result): Handle 'f' type operands; output
+       them to the trace stream using sim_fpu_printn_fpu. Include
+       "sim-fpu.h".
+
 2000-12-15  Ben Elliston  <bje@redhat.com>
 
        * sim-fpu.h (sim_fpu_printn_fpu): Declare.
index 93ce3e61182f9acc3f9247bf61ab5abfb224d3af..765ab57ab0309ef8440117100cde7acca7a19a3e 100644 (file)
@@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "dis-asm.h"
 #include "bfd.h"
 #include "sim-main.h"
+#include "sim-fpu.h"
 
 #undef min
 #define min(a,b) ((a) < (b) ? (a) : (b))
@@ -235,6 +236,19 @@ trace_result (SIM_CPU *cpu, char *name, int type, ...)
     default :
       cgen_trace_printf (cpu, "%s <- 0x%x", name, va_arg (args, int));
       break;
+    case 'f':
+      {
+       DI di;
+       sim_fpu f;
+
+       /* this is separated from previous line for sunos cc */
+       di = va_arg (args, DI);
+       sim_fpu_64to (&f, di);
+
+       cgen_trace_printf (cpu, "%s <- ", name);
+       sim_fpu_printn_fpu (&f, (sim_fpu_print_func *) cgen_trace_printf, 4, cpu);
+       break;
+      }
     case 'D' :
       {
        DI di;