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)
Feb 12 2024, 6:24 AM
Unknown Object (File)
Dec 22 2023, 10:28 PM
Unknown Object (File)
Dec 7 2023, 1:45 PM
Unknown Object (File)
Dec 7 2023, 1:45 PM
Unknown Object (File)
Dec 7 2023, 1:45 PM
Unknown Object (File)
Dec 7 2023, 1:45 PM
Unknown Object (File)
Dec 7 2023, 9:18 AM
Unknown Object (File)
Nov 15 2023, 9:05 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.