aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-03-07 19:18:06 -0500
committerLiam <byteslice@airmail.cc>2023-03-07 19:18:06 -0500
commit484641003cf727def0101f35c83d1ef135b93f54 (patch)
tree9ff9459c8daaf16bfdcaa5c189a7c0cbae24336f /src/core/hle/kernel/svc
parenta7792e5ff83523142230951ac7eacbd7685dc40b (diff)
kernel: clone fpu status on CreateThread
Diffstat (limited to 'src/core/hle/kernel/svc')
-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);