diff options
| author | 2016-05-14 15:45:04 +0200 | |
|---|---|---|
| committer | 2016-05-17 08:59:52 +0200 | |
| commit | af37dd0d52b011236d176b924efbd369afa5746c (patch) | |
| tree | fd3dad2972f8b6dd901e3dd54c5fd58eaaaab374 /src/core/hle/svc.cpp | |
| parent | Merge pull request #1689 from Subv/shmem (diff) | |
| download | yuzu-af37dd0d52b011236d176b924efbd369afa5746c.tar.gz yuzu-af37dd0d52b011236d176b924efbd369afa5746c.tar.xz yuzu-af37dd0d52b011236d176b924efbd369afa5746c.zip | |
Set fpscr for new threads
Diffstat (limited to 'src/core/hle/svc.cpp')
| -rw-r--r-- | src/core/hle/svc.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 3a53126c1..2bf122a6d 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp | |||
| @@ -502,6 +502,9 @@ static ResultCode CreateThread(Handle* out_handle, s32 priority, u32 entry_point | |||
| 502 | 502 | ||
| 503 | CASCADE_RESULT(SharedPtr<Thread> thread, Kernel::Thread::Create( | 503 | CASCADE_RESULT(SharedPtr<Thread> thread, Kernel::Thread::Create( |
| 504 | name, entry_point, priority, arg, processor_id, stack_top)); | 504 | name, entry_point, priority, arg, processor_id, stack_top)); |
| 505 | |||
| 506 | thread->context.fpscr = FPSCR_DEFAULT_NAN | FPSCR_FLUSH_TO_ZERO | FPSCR_ROUND_TOZERO; // 0x03C00000 | ||
| 507 | |||
| 505 | CASCADE_RESULT(*out_handle, Kernel::g_handle_table.Create(std::move(thread))); | 508 | CASCADE_RESULT(*out_handle, Kernel::g_handle_table.Create(std::move(thread))); |
| 506 | 509 | ||
| 507 | LOG_TRACE(Kernel_SVC, "called entrypoint=0x%08X (%s), arg=0x%08X, stacktop=0x%08X, " | 510 | LOG_TRACE(Kernel_SVC, "called entrypoint=0x%08X (%s), arg=0x%08X, stacktop=0x%08X, " |