summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2004-10-26 12:33:16 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:15:25 +0200
commit471329483e5e9151c4f5cf73e703d9b05a45eb72 (patch)
tree9360efad242bb0a1dd15724094297cfd533de6bc /i386
parent3ee3a487408aad823fa81e43f5a38309d1c4b8f8 (diff)
2004-10-26 Guillem Jover <guillem@hadrons.org>
* i386/i386/fpe.b: Remove binary without source. * i386/i386/fpe.b_elf: Likewise. * i386/i386/fpe_linkage.c: Disable the code if [! FPE]. * i386/bogus/fpe.h: Add comment about not having an fpe implementation. * i386/Makefrag (objfiles): Do not add fpe.o. Remove targets to generate fpe.o.
Diffstat (limited to 'i386')
-rw-r--r--i386/Makefrag11
-rw-r--r--i386/bogus/fpe.h1
-rw-r--r--i386/i386/fpe_linkage.c4
3 files changed, 5 insertions, 11 deletions
diff --git a/i386/Makefrag b/i386/Makefrag
index c55505c..92838fe 100644
--- a/i386/Makefrag
+++ b/i386/Makefrag
@@ -40,9 +40,6 @@ vpath %.S $(sysdep)/i386at $(sysdep)/i386
objfiles += busses.o cirbuf.o
vpath busses.c $(srcdir)/chips
-# FPE emulation
-objfiles += fpe.o
-
# Mig-generated
objfiles += mach_i386_server.o
@@ -132,11 +129,3 @@ i386-installed-headers= \
rpc.h syscall_sw.h \
thread_status.h trap.h vm_param.h \
vm_types.h)
-
-
-# Cheat, cheat, cheat.
-fpe.o: fpe.b_elf
- uudecode $<
-vpath fpe.b_elf $(sysdep)/i386
-
-fpe.d:; touch $@
diff --git a/i386/bogus/fpe.h b/i386/bogus/fpe.h
index c5c0304..3850b40 100644
--- a/i386/bogus/fpe.h
+++ b/i386/bogus/fpe.h
@@ -1 +1,2 @@
+/* We do not have a floating point implementation. */
#define FPE 0
diff --git a/i386/i386/fpe_linkage.c b/i386/i386/fpe_linkage.c
index cac58e0..e32f7fa 100644
--- a/i386/i386/fpe_linkage.c
+++ b/i386/i386/fpe_linkage.c
@@ -30,6 +30,8 @@
#include <fpe.h>
+#if FPE
+
#include <cpus.h>
#include <mach/std_types.h>
@@ -357,3 +359,5 @@ fpe_exception_fixup(exc, code, subcode)
}
exception(exc, code, subcode);
}
+#endif /* FPE. */
+