svn commit: r273988 - in head/sys/i386: i386 include

John Baldwin jhb at FreeBSD.org
Sun Nov 2 20:57:20 UTC 2014


Author: jhb
Date: Sun Nov  2 20:57:19 2014
New Revision: 273988
URL: https://svnweb.freebsd.org/changeset/base/273988

Log:
  Remove the FP_SOFTFP flag.  It wasn't used but was leftover from the
  software x86 math emulator.

Modified:
  head/sys/i386/i386/machdep.c
  head/sys/i386/include/pcb.h

Modified: head/sys/i386/i386/machdep.c
==============================================================================
--- head/sys/i386/i386/machdep.c	Sun Nov  2 19:54:10 2014	(r273987)
+++ head/sys/i386/i386/machdep.c	Sun Nov  2 20:57:19 2014	(r273988)
@@ -1602,14 +1602,6 @@ exec_setregs(struct thread *td, struct i
                 pcb->pcb_flags &= ~PCB_DBREGS;
         }
 
-	/*
-	 * Initialize the math emulator (if any) for the current process.
-	 * Actually, just clear the bit that says that the emulator has
-	 * been initialized.  Initialization is delayed until the process
-	 * traps to the emulator (if it is done at all) mainly because
-	 * emulators don't provide an entry point for initialization.
-	 */
-	td->td_pcb->pcb_flags &= ~FP_SOFTFP;
 	pcb->pcb_initial_npxcw = __INITIAL_NPXCW__;
 
 	/*

Modified: head/sys/i386/include/pcb.h
==============================================================================
--- head/sys/i386/include/pcb.h	Sun Nov  2 19:54:10 2014	(r273987)
+++ head/sys/i386/include/pcb.h	Sun Nov  2 20:57:19 2014	(r273988)
@@ -66,7 +66,6 @@ struct pcb {
 	union	savefpu	pcb_user_save;
 	uint16_t pcb_initial_npxcw;
 	u_int	pcb_flags;
-#define	FP_SOFTFP	0x01	/* process using software fltng pnt emulator */
 #define	PCB_DBREGS	0x02	/* process using debug registers */
 #define	PCB_NPXINITDONE	0x08	/* fpu state is initialized */
 #define	PCB_VM86CALL	0x10	/* in vm86 call */


More information about the svn-src-all mailing list