Port-mips archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

RE: matt-nb5-mips64 and FP emulation



I don't know why fp.S is even still around.  Taking it away (building
with NOFLOAT) and using the -msoft-float in GCC is a much cleaner
solution.

        paul

> -----Original Message-----
> From: port-mips-owner%NetBSD.org@localhost 
> [mailto:port-mips-owner%NetBSD.org@localhost]
On
> Behalf Of Manuel Bouyer
> Sent: Friday, May 07, 2010 12:03 PM
> To: port-mips%netbsd.org@localhost
> Subject: matt-nb5-mips64 and FP emulation
> 
> Hi,
> while working with the matt-nb5-mips64 on a platform without FPU,
> I found that the mips/fp.S assembly code still use t8 as a general
> purpose register, while it's now the curlwp register.
> Of course bad things happens because of this.
> 
> A quick and dirty hack around this is saving/restoring s8 and using it
> instead of t8 (see attached patch); maybe there is a better way.
> I couldln't find a way to use one less register but I didn't try much
> ...
> 
> --
> Manuel Bouyer <bouyer%antioche.eu.org@localhost>
>      NetBSD: 26 ans d'experience feront toujours la difference
> --


Home | Main Index | Thread Index | Old Index