diff options
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index b20092761..1588cfc7e 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -502,7 +502,8 @@ SharedPtr<Thread> SetupMainThread(VAddr entry_point, u32 priority, | |||
| 502 | SharedPtr<Thread> thread = std::move(thread_res).Unwrap(); | 502 | SharedPtr<Thread> thread = std::move(thread_res).Unwrap(); |
| 503 | 503 | ||
| 504 | // Register 1 must be a handle to the main thread | 504 | // Register 1 must be a handle to the main thread |
| 505 | thread->context.cpu_registers[1] = Kernel::g_handle_table.Create(thread).Unwrap(); | 505 | thread->guest_handle = Kernel::g_handle_table.Create(thread).Unwrap();; |
| 506 | thread->context.cpu_registers[1] = thread->guest_handle; | ||
| 506 | thread->context.fpscr = | 507 | thread->context.fpscr = |
| 507 | FPSCR_DEFAULT_NAN | FPSCR_FLUSH_TO_ZERO | FPSCR_ROUND_TOZERO | FPSCR_IXC; // 0x03C00010 | 508 | FPSCR_DEFAULT_NAN | FPSCR_FLUSH_TO_ZERO | FPSCR_ROUND_TOZERO | FPSCR_IXC; // 0x03C00010 |
| 508 | 509 | ||