summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog9
-rw-r--r--i386/Makefrag11
-rw-r--r--i386/bogus/fpe.h1
-rw-r--r--i386/i386/fpe_linkage.c4
4 files changed, 14 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index 6f53dbf..2ea564a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+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.
+
2004-02-29 Marcus Brinkmann <marcus@gnu.org>
* NEWS: Add things that changed so far since 1.3.
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. */
+