[kernel] Set mxcsr and xcr0 in cpu_early_init

There are some SSE instructions (moveaps, moveups) in userland code that
QEMU software emulation seems to be fine with but generate `#UD` on KVM.
So let's finally get floating-point support working. This is the first
step, just setting the control regs to try to fix that error.
This commit is contained in:
Justin C. Miller
2023-02-23 18:22:22 -08:00
parent 841ac41e36
commit 95627ba43c
5 changed files with 87 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ kernel = module("kernel",
"clock.cpp",
"cpprt.cpp",
"cpu.cpp",
"debug.s",
"cpu.s",
"device_manager.cpp",
"frame_allocator.cpp",
"gdt.cpp",