Subject: Re: Status of math_emulate
To: None <port-i386@netbsd.org>
From: Aaron J. Grier <agrier@poofygoof.com>
List: port-i386
Date: 02/26/2007 22:14:56
On Mon, Feb 26, 2007 at 12:30:30PM +0100, Frank van der Linden wrote:
> >Subject: Re: port-i386/6986 (i386 FPU emulation doesn't handle 0x66 prefix)
> >
> >Synopsis: i386 FPU emulation doesn't handle 0x66 prefix
>
> Except that this is a different issue. It has nothing to do with the
> 0x66 prefix. The problem in that PR has been fixed, so reopening was
> not a good thing to do. Please close it again.

how is this not the same issue?  it may not be a 0x66 prefix, but the
symptoms are exactly the same.

$ uname -m -r
3.0_STABLE i386
$ objdump -d /sbin/ping | grep fsqrt
 804b228:       d9 fa                   fsqrt

has there been a patch adding fsqrt support to kernel FPU emulation?

the following is still in src/gnu/dist/gcc/gcc/config/i386/netbsd.h :

/* This goes away when the math-emulator is fixed */
#undef TARGET_SUBTARGET_DEFAULT
#define TARGET_SUBTARGET_DEFAULT \
  (MASK_80387 | MASK_IEEE_FP | MASK_FLOAT_RETURNS | MASK_NO_FANCY_MATH_387)

and here it is on -current:

$ uname -m -r
4.99.13 i386
$ objdump -d /sbin/ping | grep fsqrt
 8049933:       d9 fa                   fsqrt

if it looks like a duck, and quacks like a duck...

I can open another PR if it makes you feel better.

-- 
  Aaron J. Grier | "Not your ordinary poofy goof." | agrier@poofygoof.com
              "silly brewer, saaz are for pils!"  --  virt