aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc/svc_thread.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-03-09 09:19:15 -0500
committerGitHub <noreply@github.com>2023-03-09 09:19:15 -0500
commitec4e2d1fab5ff71a33de1229dab191b679983daa (patch)
treea0e09486cb95c4a86d03fb36e6df785c32a337cc /src/core/hle/kernel/svc/svc_thread.cpp
parentb5c0c1e16360ad7c3b82d70d46c2193b6e32fe63 (diff)
parent484641003cf727def0101f35c83d1ef135b93f54 (diff)
Merge pull request #9916 from liamwhite/fpu
kernel: clone fpu status on CreateThread
Diffstat (limited to 'src/core/hle/kernel/svc/svc_thread.cpp')
-rw-r--r--src/core/hle/kernel/svc/svc_thread.cpp3
1 files changed, 3 insertions, 0 deletions
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);