Commit 7b62944
committed
cpu/native: fix FPU/SSE register related context switching issues
When the `float_math` feature is not in used, this adds CFLAGS to
instruct the compiler to not make use of FPU/SSE registers, fixing
issues (random crashes, floating point exceptions, stack corruptions,
incorrect computations) due to incorrect back and restore of those
registers on context switching.
If `float_math` is used, the buggy behavior as before is produced.
But since `float_math` is not actually provided by the native CPU,
one would have to compile `CONTINUE_ON_EXPECTED_ERRORS=1` to actually
get into that situation.1 parent c8970cf commit 7b62944
1 file changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
0 commit comments