Set fpscr for new threads
This commit is contained in:
1 parent
18b517e236
commit
af37dd0d52
3 files changed
+6
No files matched your search
@@ -526,6 +526,8 @@ SharedPtr<Thread> SetupMainThread(u32 entry_point, s32 priority) {
|
||||
|
||||
SharedPtr<Thread> thread = thread_res.MoveFrom();
|
||||
|
||||
thread->context.fpscr = FPSCR_DEFAULT_NAN | FPSCR_FLUSH_TO_ZERO | FPSCR_ROUND_TOZERO | FPSCR_IXC; // 0x03C00010
|
||||
|
||||
// Run new "main" thread
|
||||
SwitchContext(thread.get());
|
||||
|
||||
|
||||
Reference in new issue
Block a user