Port-powerpc archive

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

Re: MKSOFTFLOAT for evbppc



On Sep 18, 2012, at 2:49 PM, Greg Troxel wrote:

> 
> Apologies if I've asked about this before and forgotten the reason why
> it's a bad idea.  I don't see anything at
>  http://www.netbsd.org/ports/evbppc/
> 
> We have some evbppc machines based on a P2020.   That needs softfloat,
> and we have the following local change.  Is this something that should
> be on by default, or are there lots of processors in the evbppc that
> have hw floating point?   Or are there few, and those people should set
> MKSOFTFLOAT to no?

Most evbppc don't need softfloat so its not the default.  When I started the
85xx support, I required softfloat and modified the toolchain to default to
-msoft-float if MKSOFTFLOAT was true.

> (Also, for the port page: does fp emulation via traps work?  Or is
> MKSOFTFLOAT the only way that can possibly work?)

Within the past 4 months or so, I added emulation of the FPU so you can run 
without MKSOFTFLOAT=yes.

> --- bsd.own.mk.~1.706.~       2012-08-21 12:21:05.000000000 -0400
> +++ bsd.own.mk        2012-09-18 17:45:05.000000000 -0400
> @@ -785,7 +785,7 @@ MKCOMPATMODULES:= no
> # emips is always softfloat.
> #
> .if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" || \
> -    ${MACHINE} == "emips"
> +    ${MACHINE} == "emips" || ${MACHINE} == "evbppc"
> MKSOFTFLOAT?= yes
> .endif
> 



Home | Main Index | Thread Index | Old Index