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)
Sat, Dec 7, 1:54 AM
Unknown Object (File)
Tue, Dec 3, 10:09 PM
Unknown Object (File)
Mon, Nov 25, 3:28 AM
Unknown Object (File)
Mon, Nov 25, 1:35 AM
Unknown Object (File)
Sun, Nov 24, 5:35 AM
Unknown Object (File)
Sun, Nov 24, 2:14 AM
Unknown Object (File)
Nov 23 2024, 5:07 AM
Unknown Object (File)
Nov 23 2024, 4:17 AM
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.