diff options
author | Chris Demetriou <cgd@google.com> | 2002-06-04 01:35:23 +0000 |
---|---|---|
committer | Chris Demetriou <cgd@google.com> | 2002-06-04 01:35:23 +0000 |
commit | 18d8a52d004d2dc4ee9ad3ceaa76a4d748b4f920 (patch) | |
tree | cf131cab0eb9bbf3ea5272a42cfa72076aa5f547 /sim/mips/cp1.c | |
parent | 9ad85d9b015ac8708c3d37dc03f0209dc6494d0c (diff) | |
download | fsf-binutils-gdb-18d8a52d004d2dc4ee9ad3ceaa76a4d748b4f920.zip fsf-binutils-gdb-18d8a52d004d2dc4ee9ad3ceaa76a4d748b4f920.tar.gz fsf-binutils-gdb-18d8a52d004d2dc4ee9ad3ceaa76a4d748b4f920.tar.bz2 |
2002-06-03 Chris Demetriou <cgd@broadcom.com>
* sim-main.h (Nan, Infinity, Less, Equal, AbsoluteValue, Negate)
(Add, Sub, Multiply, Divide, Recip, SquareRoot): Move lower in
file, remove PARAMS from prototypes.
(value_fpr, store_fpr, convert): Likewise. Use SIM_STATE to provide
simulator state arguments.
(ValueFPR, StoreFPR, Convert): Move lower in file. Use SIM_ARGS to
pass simulator state arguments.
* cp1.c (SD): Redefine as CPU_STATE(cpu).
(store_fpr, convert): Remove 'sd' argument.
(value_fpr): Likewise. Convert to use 'SD' instead.
Diffstat (limited to 'sim/mips/cp1.c')
-rw-r--r-- | sim/mips/cp1.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/sim/mips/cp1.c b/sim/mips/cp1.c index d611d9c..7a3be11 100644 --- a/sim/mips/cp1.c +++ b/sim/mips/cp1.c @@ -21,7 +21,7 @@ /* Within cp1.c we refer to sim_cpu directly. */ #define CPU cpu -#define SD sd +#define SD CPU_STATE(cpu) /*-- FPU support routines ---------------------------------------------------*/ @@ -63,8 +63,7 @@ static const char *fpu_rounding_mode_name (int rm); #endif uword64 -value_fpr (SIM_DESC sd, - sim_cpu *cpu, +value_fpr (sim_cpu *cpu, address_word cia, int fpr, FP_formats fmt) @@ -95,7 +94,7 @@ value_fpr (SIM_DESC sd, } if (fmt != FPR_STATE[fpr]) { - sim_io_eprintf (sd, "FPR %d (format %s) being accessed with format %s - setting to unknown (PC = 0x%s)\n", + sim_io_eprintf (SD, "FPR %d (format %s) being accessed with format %s - setting to unknown (PC = 0x%s)\n", fpr, fpu_format_name (FPR_STATE[fpr]), fpu_format_name (fmt), pr_addr (cia)); FPR_STATE[fpr] = fmt_unknown; @@ -195,8 +194,7 @@ value_fpr (SIM_DESC sd, } void -store_fpr (SIM_DESC sd, - sim_cpu *cpu, +store_fpr (sim_cpu *cpu, address_word cia, int fpr, FP_formats fmt, @@ -894,8 +892,7 @@ SquareRoot (op, fmt) } uword64 -convert (SIM_DESC sd, - sim_cpu *cpu, +convert (sim_cpu *cpu, address_word cia, int rm, uword64 op, |