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".
This commit is contained in:
parent
55f2d5ed30
commit
ad8707b58d
@ -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>
|
2000-12-15 Ben Elliston <bje@redhat.com>
|
||||||
|
|
||||||
* sim-fpu.h (sim_fpu_printn_fpu): Declare.
|
* sim-fpu.h (sim_fpu_printn_fpu): Declare.
|
||||||
|
@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
#include "dis-asm.h"
|
#include "dis-asm.h"
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
#include "sim-main.h"
|
#include "sim-main.h"
|
||||||
|
#include "sim-fpu.h"
|
||||||
|
|
||||||
#undef min
|
#undef min
|
||||||
#define min(a,b) ((a) < (b) ? (a) : (b))
|
#define min(a,b) ((a) < (b) ? (a) : (b))
|
||||||
@ -235,6 +236,19 @@ trace_result (SIM_CPU *cpu, char *name, int type, ...)
|
|||||||
default :
|
default :
|
||||||
cgen_trace_printf (cpu, "%s <- 0x%x", name, va_arg (args, int));
|
cgen_trace_printf (cpu, "%s <- 0x%x", name, va_arg (args, int));
|
||||||
break;
|
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' :
|
case 'D' :
|
||||||
{
|
{
|
||||||
DI di;
|
DI di;
|
||||||
|
Loading…
Reference in New Issue
Block a user