Page MenuHomeFreeBSD

powerpc: Fix powerpcspe WRT FPSCR
ClosedPublic

Authored by jhibbits on Sat, Mar 27, 9:49 PM.

Details

Summary

Since powerpcspe doesn't have a traditional FPU, there's no FPSCR, and
no FPRs. Attempting to use them triggers an illegal instruction trap.
Fix this unconditional cleanup of FPSCR by conditionalizing it on the
FPU being used in the outgoing thread.

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.