Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jul 1999 18:51:16 +0200
From:      Martin Cracauer <cracauer@cons.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        cracauer@cons.org, freebsd-current@FreeBSD.ORG
Subject:   Re: Using float emulator on a system with FPU?
Message-ID:  <19990722185115.A27722@cons.org>
In-Reply-To: <199907121144.VAA07535@godzilla.zeta.org.au>; from Bruce Evans on Mon, Jul 12, 1999 at 09:44:59PM %2B1000
References:  <199907121144.VAA07535@godzilla.zeta.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
In <199907121144.VAA07535@godzilla.zeta.org.au>, Bruce Evans wrote: 
> >I'm going to work on FreeBSD's floating point support, but I need to
> >test my changes on systems using the FPU emulators (non-GPL and GPL). 
> >
> >Is there any way to use these emulators on a system that has a
> >hardware FPU?
> 
> Toggling `npx_exists' using ddb used to work.  Now, toggling it off
> on i586 systems causes a panic in the i586-optimised copy routines.

This particular problem has a hook in npx.c:

  device npx0 [...] flags 7

seems to do the trick (disables usage of FPU-optimized mem stuff).


I am now able to switch "npx_exists" between npx_probe1() and
npx_attach(), which let me run with the emulator on a Pentium.

But only from serial kgdb, since as you noted in your other message,
symbols are not available to ddb in ELF kernels started with -d.

I assume you use kdb_init() from db_elf.c, you how do you call it
given that you neither have the symbol (not loaded yet) nor the
address (`nm /kernel` output not useful)?

[Throwing an egg after the chicken that fails to produce the egg]
 
Martin
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer@cons.org> http://www.cons.org/cracauer/
  Tel.: (private) +4940 5221829 Fax.: (private) +4940 5228536


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990722185115.A27722>