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)
Thu, Sep 18, 5:45 PM
Unknown Object (File)
Aug 4 2025, 12:07 AM
Unknown Object (File)
Jul 28 2025, 12:34 AM
Unknown Object (File)
Jul 27 2025, 5:57 AM
Unknown Object (File)
Jul 26 2025, 1:35 PM
Unknown Object (File)
Jun 16 2025, 8:51 PM
Unknown Object (File)
May 29 2025, 10:56 AM
Unknown Object (File)
Apr 29 2025, 12:37 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.