kernel: clone fpu status on CreateThread

This commit is contained in:
Liam
2023-03-07 19:18:06 -05:00
parent a7792e5ff8
commit 484641003c
3 changed files with 28 additions and 1 deletions

View File

@ -82,6 +82,9 @@ Result CreateThread(Core::System& system, Handle* out_handle, VAddr entry_point,
// Commit the thread reservation.
thread_reservation.Commit();
// Clone the current fpu status to the new thread.
thread->CloneFpuStatus();
// Register the new thread.
KThread::Register(kernel, thread);