* corelow.c, exec.c, inftarg.c, m3-nat.c, op50-rom.c, procfs.c,
[deliverable/binutils-gdb.git] / gdb / i387-tdep.c
index 6c2b6f98325fe407b11dedfd5d78c6fdbc8a4048..3cec3abd1f28bcf380f18fab44847ff414253502 100644 (file)
@@ -22,12 +22,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "inferior.h"
 #include "language.h"
 #include "gdbcore.h"
-#include "ieee-float.h"
-
-struct ext_format ext_format_i387 = {
-/* tot sbyte smask expbyte     manbyte */
-   10, 9,    0x80, 9,8,                4,0             /* i387 */
-};
+#include "floatformat.h"
 
 /* FIXME:  Eliminate these routines when we have the time to change all
    the callers.  */
@@ -37,7 +32,7 @@ i387_to_double (from, to)
      char *from;
      char *to;
 {
-  ieee_extended_to_double (&ext_format_i387, from, (double *)to);
+  floatformat_to_double (&floatformat_i387_ext, from, (double *)to);
 }
 
 void
@@ -45,7 +40,7 @@ double_to_i387 (from, to)
      char *from;
      char *to;
 {
-  double_to_ieee_extended (&ext_format_i387, (double *)from, to);
+  floatformat_from_double (&floatformat_i387_ext, (double *)from, to);
 }
 
 void
@@ -108,8 +103,5 @@ print_387_status_word (status)
          (status & 0x0200) != 0,
          (status & 0x0100) != 0);
 
-  /* FIXME: Someone claims this should be 7 - (status >> 11) & 7 for AIX.
-     What's the story?  Is the following just wrong or are differing
-     notations in use?  */
   printf_unfiltered ("top %d\n", (status >> 11) & 7);
 }
This page took 0.023898 seconds and 4 git commands to generate.