1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:47:35 +00:00

LibC: Actually set the FPU environment instead of its pointer

This commit is contained in:
Tim Schumacher 2022-04-29 21:36:51 +02:00 committed by Andreas Kling
parent 7bf4a785c6
commit 89f9454785

View file

@ -72,7 +72,7 @@ int fesetenv(fenv_t const* env)
return 0;
}
asm volatile("fldenv %0" ::"m"(env)
asm volatile("fldenv %0" ::"m"(env->__x87_fpu_env)
: "memory");
set_mxcsr(env->__mxcsr);