Page MenuHomeFreeBSD

[PowerPC] Floating-point exception trap followup
ClosedPublic

Authored by bdragon on Dec 3 2020, 1:44 AM.
Referenced Files
F163105802: D27453.diff
Mon, Jul 20, 3:19 AM
F163086131: D27453.diff
Sun, Jul 19, 11:10 PM
Unknown Object (File)
Sat, Jul 18, 8:59 AM
Unknown Object (File)
Fri, Jul 17, 12:25 PM
Unknown Object (File)
Wed, Jul 15, 3:12 AM
Unknown Object (File)
Thu, Jun 25, 5:43 AM
Unknown Object (File)
Sun, Jun 21, 8:47 PM
Unknown Object (File)
Jun 4 2026, 9:07 PM
Subscribers

Details

Summary
  • Fix incorrect operation on 32-bit caused by incorrectly-sized storage for a temporary FPSCR.
  • Fix several whitespace problems.
  • Don't unconditionally try to enable VSX during cleanup_fpscr().

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

sys/powerpc/powerpc/fpu.c
220–221

I don't think PSL_VSX is needed here at all.

sys/powerpc/powerpc/fpu.c
220–221

Yeah, FPSCR has VXSOFT bit that is being cleared, but documentation doesn't mention PSL_VSX bit should be enabled when manipulating FPSCR. PSL_FP is mandatory

Addressing review comments.

This revision is now accepted and ready to land.Dec 12 2020, 11:49 PM
This revision was automatically updated to reflect the committed changes.