aboutsummaryrefslogtreecommitdiff
path: root/sim/tic80/misc.c
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1998-02-13 22:12:51 +0000
committerMichael Meissner <gnu@the-meissners.org>1998-02-13 22:12:51 +0000
commit8114673a2bc2a3c04761908e5f62725876ce3278 (patch)
treebeec514728511539bb733efbe2dcf6c7adc501a8 /sim/tic80/misc.c
parent8e7a5a048aa35777f3a69fd0ba9d29bb5541138a (diff)
downloadgdb-8114673a2bc2a3c04761908e5f62725876ce3278.zip
gdb-8114673a2bc2a3c04761908e5f62725876ce3278.tar.gz
gdb-8114673a2bc2a3c04761908e5f62725876ce3278.tar.bz2
Pass floating point structure address instead of the structure itself
Diffstat (limited to 'sim/tic80/misc.c')
-rw-r--r--sim/tic80/misc.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/sim/tic80/misc.c b/sim/tic80/misc.c
index 0548074..f9e4d3c 100644
--- a/sim/tic80/misc.c
+++ b/sim/tic80/misc.c
@@ -314,9 +314,9 @@ tic80_trace_fpu3 (SIM_DESC sd,
sim_cpu *cpu,
sim_cia cia,
int indx,
- sim_fpu result,
- sim_fpu input1,
- sim_fpu input2)
+ sim_fpu *result,
+ sim_fpu *input1,
+ sim_fpu *input2)
{
if (!tic80_size_name)
tic80_init_trace ();
@@ -325,9 +325,9 @@ tic80_trace_fpu3 (SIM_DESC sd,
itable[indx].file, itable[indx].line_nr, "fpu",
"%-*s %*g %*g => %*g",
tic80_size_name, itable[indx].name,
- SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (&input1),
- SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (&input2),
- SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (&result));
+ SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (input1),
+ SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (input2),
+ SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (result));
}
/* Trace the result of an FPU operation with 1 floating point input and a floating point output */
@@ -336,8 +336,8 @@ tic80_trace_fpu2 (SIM_DESC sd,
sim_cpu *cpu,
sim_cia cia,
int indx,
- sim_fpu result,
- sim_fpu input)
+ sim_fpu *result,
+ sim_fpu *input)
{
if (!tic80_size_name)
tic80_init_trace ();
@@ -346,9 +346,9 @@ tic80_trace_fpu2 (SIM_DESC sd,
itable[indx].file, itable[indx].line_nr, "fpu",
"%-*s %*g %-*s => %*g",
tic80_size_name, itable[indx].name,
- SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (&input),
+ SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (input),
SIZE_HEX + SIZE_DECIMAL + 3, "",
- SIZE_HEX + SIZE_DECIMAL, sim_fpu_2d (&result));
+ 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 */
@@ -357,7 +357,7 @@ tic80_trace_fpu1 (SIM_DESC sd,
sim_cpu *cpu,
sim_cia cia,
int indx,
- sim_fpu result)
+ sim_fpu *result)
{
if (!tic80_size_name)
tic80_init_trace ();
@@ -368,7 +368,7 @@ tic80_trace_fpu1 (SIM_DESC sd,
tic80_size_name, itable[indx].name,
SIZE_HEX + SIZE_DECIMAL + 3, "",
SIZE_HEX + SIZE_DECIMAL + 3, "",
- SIZE_HEX + SIZE_DECIMAL, sim_fpu_2d (&result));
+ SIZE_HEX + SIZE_DECIMAL, sim_fpu_2d (result));
}
/* Trace the result of an FPU operation with 2 floating point inputs and an integer output */
@@ -378,18 +378,18 @@ tic80_trace_fpu2i (SIM_DESC sd,
sim_cia cia,
int indx,
unsigned32 result,
- sim_fpu input1,
- sim_fpu input2)
+ sim_fpu *input1,
+ sim_fpu *input2)
{
if (!tic80_size_name)
tic80_init_trace ();
trace_one_insn (sd, cpu, cia.ip, 1,
itable[indx].file, itable[indx].line_nr, "fpu",
- "%-*s %*f %*f => 0x%.*lx %-*ld",
+ "%-*s %*g %*g => 0x%.*lx %-*ld",
tic80_size_name, itable[indx].name,
- SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (&input1),
- SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (&input2),
+ SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (input1),
+ SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (input2),
SIZE_HEX, result, SIZE_DECIMAL, (long)(signed32)result);
}
@@ -401,18 +401,18 @@ tic80_trace_fpu2cmp (SIM_DESC sd,
sim_cia cia,
int indx,
unsigned32 result,
- sim_fpu input1,
- sim_fpu input2)
+ sim_fpu *input1,
+ sim_fpu *input2)
{
if (!tic80_size_name)
tic80_init_trace ();
trace_one_insn (sd, cpu, cia.ip, 1,
itable[indx].file, itable[indx].line_nr, "fpu",
- "%-*s %*f %*f => 0x%.*lx %s",
+ "%-*s %*g %*g => 0x%.*lx %s",
tic80_size_name, itable[indx].name,
- SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (&input1),
- SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (&input2),
+ SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (input1),
+ SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (input2),
SIZE_HEX, result, tic80_trace_cmp_internal (result));
}