kernel: clone fpu status on CreateThread

This commit is contained in:
Liam 2023-03-07 19:18:06 -05:00
parent 4bdcafda58
commit 1484a6536d
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);