Page MenuHomeFreeBSD

Replace SOFTFLOAT with __riscv_float_abi_*.
ClosedPublic

Authored by brooks on Mar 16 2017, 11:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 21, 1:14 AM
Unknown Object (File)
Sun, Apr 20, 7:57 PM
Unknown Object (File)
Sun, Apr 20, 7:41 PM
Unknown Object (File)
Sun, Apr 20, 10:36 AM
Unknown Object (File)
Sun, Apr 20, 10:24 AM
Unknown Object (File)
Sat, Apr 19, 5:43 PM
Unknown Object (File)
Sat, Apr 19, 2:32 PM
Unknown Object (File)
Fri, Apr 18, 10:11 PM
Subscribers

Details

Summary

With SOFTFLOAT, libc and libm were built correctly, but any program
including fenv.h itself assumed it was on a hardfloat systen and emitted
inline fpu instructions for fedisableexcept() and friends.

Unlike r315424 which did this for MIPS, I've used riscv_float_abi_soft
and
riscv_float_abi_double macros as appropriate rather than using
__riscv_float_abi_soft exclusively.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I'm not in a position to test this so it will require testing before commit.

@br is this change sensible or should I abandon it?

@br is this change sensible or should I abandon it?

Add fix for lib/libc/riscv/gen/fabs.S since it uses SOFTFLOAT macro

  • Rebase.
  • Remove another instance of SOFTFLOAT.
This revision is now accepted and ready to land.Apr 19 2018, 10:42 AM
This revision was automatically updated to reflect the committed changes.