Page MenuHomeFreeBSD

Replace SOFTFLOAT with __riscv_float_abi_*.
ClosedPublic

Authored by brooks on Mar 16 2017, 11:42 PM.
Tags
None
Referenced Files
F153103356: D10039.id41664.diff
Sun, Apr 19, 4:16 AM
F153063387: D10039.id41664.diff
Sat, Apr 18, 10:07 PM
F153035382: D10039.id41664.diff
Sat, Apr 18, 6:37 PM
Unknown Object (File)
Fri, Apr 10, 7:52 PM
Unknown Object (File)
Mon, Apr 6, 2:23 AM
Unknown Object (File)
Sun, Apr 5, 5:50 PM
Unknown Object (File)
Sun, Apr 5, 2:36 AM
Unknown Object (File)
Mar 7 2026, 2:38 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.