Page MenuHomeFreeBSD

msun fixes for SPE
ClosedPublic

Authored by jhibbits on Dec 15 2019, 9:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 21, 1:51 PM
Unknown Object (File)
Mon, Dec 8, 7:47 PM
Unknown Object (File)
Wed, Nov 26, 7:41 AM
Unknown Object (File)
Nov 22 2025, 9:39 AM
Unknown Object (File)
Nov 22 2025, 8:05 AM
Unknown Object (File)
Nov 22 2025, 8:04 AM
Unknown Object (File)
Nov 20 2025, 4:40 PM
Unknown Object (File)
Nov 15 2025, 6:47 PM
Subscribers

Details

Summary

Fix FPU exception management for powerpcspe. Bits are in a different place from
the standard FPSCR, so we need to handle the shifting differences. Also,
there's no concept of a "software exception" raise, so we need to do exceptional
math to trigger the exception from software.

Test Plan

Should probably run the kyua test on powerpcspe.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 28163
Build 26296: arc lint + arc unit

Event Timeline

alfredo added inline comments.
lib/msun/powerpc/fenv.h
52

Should it include FE_INVALID? Like:

#define FE_ALL_INVALID FE_INVALID
jhibbits added inline comments.
lib/msun/powerpc/fenv.h
52

Yes, it should be.

jhibbits marked an inline comment as done.

Address @alfredo's feedback

I don't have any SPE board to try it. Anyway it LGTM

This revision is now accepted and ready to land.May 4 2021, 8:24 PM
This revision was automatically updated to reflect the committed changes.