SysInitFPU set FPU exceptions ignoring Math's ExceptionMask (AARCH64)
Original Reporter info from Mantis: ekryukov
-
Reporter name: ekryukov
Original Reporter info from Mantis: ekryukov
- Reporter name: ekryukov
Description:
aarch64.inc:SysInitFPU resets FPU exceptions flags and ignores ExceptionMask from math.
Here is a code:
..<br/>
{ enable invalid operations and division by zero exceptions. }
setfpcr(((getfpcr and not(fpu_exception_mask)) or fpu_dze or fpu_ofe or fpu_ioe));
..
So, if we call SetExceptionMask and then new thread started, SysInitFPU resets "fpcr" register by enabling invalid operations and division by zero exceptions.
Mantis conversion info:
- Mantis ID: 38750
- Version: 3.2.1
- Monitored by: » ekryukov (ekryukov)