diff options
| author | Liam <byteslice@airmail.cc> | 2023-03-07 19:18:06 -0500 |
|---|---|---|
| committer | Liam <byteslice@airmail.cc> | 2023-03-07 19:18:06 -0500 |
| commit | 1484a6536d11d89e6b9d94153247adba2c3a7e56 (patch) | |
| tree | 9ff9459c8daaf16bfdcaa5c189a7c0cbae24336f /src/core/hle/kernel/svc/svc_thread.cpp | |
| parent | 4bdcafda5807c2882b57bd0c790c798621f98f95 (diff) | |
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.cpp | 3 |
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 b398078418..9bc1ebe74d 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); |
