[Top] [All Lists]

Re: FPU emulator unsafe for SMP?

To: Daniel Jacobowitz <>
Subject: Re: FPU emulator unsafe for SMP?
From: Ralf Baechle <>
Date: Wed, 20 Feb 2002 14:24:16 +0100
Cc: Jun Sun <>, Greg Lindahl <>,
In-reply-to: <>; from on Tue, Feb 19, 2002 at 11:32:22PM -0500
References: <> <> <> <002b01c1b607$6afbd5c0$10eca8c0@grendel> <> <00af01c1b9a2$c0d6d5f0$10eca8c0@grendel> <> <> <> <>
User-agent: Mutt/1.2.5i
On Tue, Feb 19, 2002 at 11:32:22PM -0500, Daniel Jacobowitz wrote:

> > If you do use floating point, I think it is pretty common to have
> > only process that uses fpu and runs for very long.  In that case,
> > leaving FPU owned by the process also saves quite a bit.
> Not true.  For instance, on a processor with hardware FPU, setjmp()
> will save FPU registers.  That means most processes will actually end
> up taking the FPU at least once.

The cleassic reason to take the FPU is the ctc1 $0, $31 instruction used
to initalize the FPU control register rsp. it's equivalent on other
architectures.  This should be fixed in glibc since a few years.


<Prev in Thread] Current Thread [Next in Thread>