summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorGravatar Jannik Vogel2016-05-14 15:45:04 +0200
committerGravatar Jannik Vogel2016-05-17 08:59:52 +0200
commitaf37dd0d52b011236d176b924efbd369afa5746c (patch)
treefd3dad2972f8b6dd901e3dd54c5fd58eaaaab374 /src/core/hle/kernel/thread.cpp
parentMerge pull request #1689 from Subv/shmem (diff)
downloadyuzu-af37dd0d52b011236d176b924efbd369afa5746c.tar.gz
yuzu-af37dd0d52b011236d176b924efbd369afa5746c.tar.xz
yuzu-af37dd0d52b011236d176b924efbd369afa5746c.zip
Set fpscr for new threads
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r--src/core/hle/kernel/thread.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 68f026918..43def6146 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -526,6 +526,8 @@ SharedPtr<Thread> SetupMainThread(u32 entry_point, s32 priority) {
526 526
527 SharedPtr<Thread> thread = thread_res.MoveFrom(); 527 SharedPtr<Thread> thread = thread_res.MoveFrom();
528 528
529 thread->context.fpscr = FPSCR_DEFAULT_NAN | FPSCR_FLUSH_TO_ZERO | FPSCR_ROUND_TOZERO | FPSCR_IXC; // 0x03C00010
530
529 // Run new "main" thread 531 // Run new "main" thread
530 SwitchContext(thread.get()); 532 SwitchContext(thread.get());
531 533