summaryrefslogtreecommitdiff
path: root/i386/i386/fpu.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2006-12-12 23:30:49 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:26:58 +0200
commit34547bab03d46e5f748dbcc600fa6eb5be5033be (patch)
treec28c978be08ba9a0818f1272aba63f553791e26a /i386/i386/fpu.h
parentc0381f2fb88a2caf09b92d441eb61184d85765ac (diff)
2006-12-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
Drop useless and broken FPE support. * i386/configfrac.ac (FPE): Don't define. * i386/i386/gdt.h (FPE_CS, USER_FPREGS): Remove macros. * i386/i386/fpu.c (init_fpu, fpu_set_state, fpu_get_state): Remove FPE support. * i386/i386/fpu.h: Likewise. * i386/i386/trap.c (user_trap, i386_exception): Likewise. * i386/i386/fpe_linkage.c: Remove file. * i386/Makefrag.am: Remove i386/i386/fpe_linkage.c. * Makefile.in: Regenerate.
Diffstat (limited to 'i386/i386/fpu.h')
-rw-r--r--i386/i386/fpu.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/i386/i386/fpu.h b/i386/i386/fpu.h
index bb332ad..3e92de7 100644
--- a/i386/i386/fpu.h
+++ b/i386/i386/fpu.h
@@ -69,32 +69,6 @@
#define fwait() \
asm("fwait");
-/*
- * If floating-point instructions are emulated,
- * we must load the floating-point register selector
- * when switching to a new thread.
- */
-#if FPE
-extern void disable_fpe();
-extern void enable_fpe();
-
-#define fpu_save_context(thread) \
- { \
- if (fp_kind == FP_SOFT) \
- disable_fpe(); \
- else \
- set_ts(); \
- }
-
-#define fpu_load_context(pcb) \
- { \
- register struct i386_fpsave_state *ifps; \
- if (fp_kind == FP_SOFT && (ifps = pcb->ims.ifps) != 0) \
- enable_fpe(ifps); \
- }
-
-#else /* no FPE */
-
#define fpu_load_context(pcb)
/*
@@ -124,8 +98,6 @@ extern void enable_fpe();
#endif /* NCPUS == 1 */
-#endif /* no FPE */
-
extern int fp_kind;
#endif /* _I386_FPU_H_ */