Merge pull request #9916 from liamwhite/fpu

kernel: clone fpu status on CreateThread
This commit is contained in:
liamwhite
2023-03-09 09:19:15 -05:00
committed by GitHub
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);