Opened 5 years ago

Closed 5 years ago

#312 closed defect (fixed)

FPU control word is altered at startup

Reported by: komh Owned by:
Priority: normal Milestone: libc-0.6.6
Component: libc Version: 0.6.5
Severity: normal Keywords:



It is well known that some dlls alter FPU CW but do not restore it. So if those dlls are imported, FPU CW is altered at startup. This may cause SIGFPE later. To prevent this, it's good to initialize FPU CW at startup.

Attachments (1)

fpucw.diff (465 bytes) - added by komh 5 years ago.
patch to initialize FPU CW at startup

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by komh

patch to initialize FPU CW at startup

comment:1 Changed 5 years ago by bird

  • Milestone changed from libc-0.7 to libc-0.6.6
  • Resolution set to fixed
  • Status changed from new to closed

Great idea! I'd like to have it in the crt0 assembly code, though. Implemented this in r3900 (untested).

Note: See TracTickets for help on using tickets.