From 484641003cf727def0101f35c83d1ef135b93f54 Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 7 Mar 2023 19:18:06 -0500 Subject: kernel: clone fpu status on CreateThread --- src/core/hle/kernel/svc/svc_thread.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/hle/kernel/svc') diff --git a/src/core/hle/kernel/svc/svc_thread.cpp b/src/core/hle/kernel/svc/svc_thread.cpp index b39807841..9bc1ebe74 100644 --- a/src/core/hle/kernel/svc/svc_thread.cpp +++ b/src/core/hle/kernel/svc/svc_thread.cpp @@ -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); -- cgit v1.2.3