mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-09 23:00:20 +02:00
This was causing an unfortunate set of circumstances where Dark Souls III was modifying MXCSR and we weren't saving it, cause the value to change from 0x9fc0 to 0. This "enabled" float exceptions by unmasking the exception masks in MXCSR. This in turn had Dark Souls III's `expf` function to fault out, as it checks if the MXCSR exception masks are set or not for determining if underflow should assert or not. Wow64/arm64ec has a similar problem where it always sets back to default on signal. Which means game lose DAZ, but I'm not fixing that bug right now. Fixes #5391