From b30601cb28a62dee5579e2cffe2b2d02bd1e0a9d Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Mon, 28 Feb 1994 06:04:23 +0000 Subject: * config/m68k/tm-apollo68b.h: Remove HAVE_68881 define; it is obsolete. * i387-tdep.c, i386-tdep.c i386v-nat.c, i386aix-nat.c, i386m3-nat.c, config/m68k/tm-m68k.h, i960-tdep.c config/i960/tm-i960.h, remote-nindy.c, config/m88k/tm-m88k.h, m88k-tdep.c: Use floatformat.h instead of ieee-float.h. * sparc-tdep.c: Remove now-obsolete ieee-float.h stuff * findvar.c: Update comment regarding ieee-float.h. --- gdb/config/m68k/tm-apollo68b.h | 4 ---- gdb/config/m68k/tm-m68k.h | 8 +++----- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/gdb/config/m68k/tm-apollo68b.h b/gdb/config/m68k/tm-apollo68b.h index fd8fbfc..0e33df6 100644 --- a/gdb/config/m68k/tm-apollo68b.h +++ b/gdb/config/m68k/tm-apollo68b.h @@ -22,10 +22,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define BPT_VECTOR 0xb -/* Assume we have a coprocessor. If we don't, it still shouldn't hurt */ - -#define HAVE_68881 1 - #include "m68k/tm-m68k.h" #define FRAME_CHAIN_VALID(chain, thisframe) (chain != 0) diff --git a/gdb/config/m68k/tm-m68k.h b/gdb/config/m68k/tm-m68k.h index 9b830fd..f95a532 100644 --- a/gdb/config/m68k/tm-m68k.h +++ b/gdb/config/m68k/tm-m68k.h @@ -153,9 +153,7 @@ extern CORE_ADDR m68k_saved_pc_after_call PARAMS ((struct frame_info *)); #define REGISTER_CONVERTIBLE(N) (((unsigned)(N) - FP0_REGNUM) < 8) -/* Put the declaration out here because if it's in the macros, PCC - will complain. */ -extern const struct ext_format ext_format_68881; +#include "floatformat.h" /* Convert data from raw format for register REGNUM in buffer FROM to virtual format with type TYPE in buffer TO. */ @@ -163,7 +161,7 @@ extern const struct ext_format ext_format_68881; #define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,TYPE,FROM,TO) \ { \ double val; \ - ieee_extended_to_double (&ext_format_68881, (FROM), &val); \ + floatformat_to_double (&floatformat_m68881_ext, (FROM), &val); \ store_floating ((TO), TYPE_LENGTH (TYPE), val); \ } @@ -173,7 +171,7 @@ extern const struct ext_format ext_format_68881; #define REGISTER_CONVERT_TO_RAW(TYPE,REGNUM,FROM,TO) \ { \ double val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \ - double_to_ieee_extended (&ext_format_68881, &val, (TO)); \ + floatformat_from_double (&floatformat_m68881_ext, &val, (TO)); \ } /* Return the GDB type object for the "standard" data type -- cgit v1.1