summaryrefslogtreecommitdiff
path: root/src/core/hle/svc.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2017-12-31 17:23:36 -0500
committerGravatar bunnei2017-12-31 17:23:36 -0500
commit1cb978eb82253d6869d1c3729e976a98fb5a7a9c (patch)
tree8e1045990a52e489b6e7441aca8c68893959d6e7 /src/core/hle/svc.cpp
parentsvc: Implement svcExitThread. (diff)
downloadyuzu-1cb978eb82253d6869d1c3729e976a98fb5a7a9c.tar.gz
yuzu-1cb978eb82253d6869d1c3729e976a98fb5a7a9c.tar.xz
yuzu-1cb978eb82253d6869d1c3729e976a98fb5a7a9c.zip
thread: Keep track of the initially created handle.
This is kinda crufty, but we need it for now to update guest state variables.
Diffstat (limited to 'src/core/hle/svc.cpp')
-rw-r--r--src/core/hle/svc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp
index bffa18c39..133b868f2 100644
--- a/src/core/hle/svc.cpp
+++ b/src/core/hle/svc.cpp
@@ -268,7 +268,8 @@ static ResultCode CreateThread(Handle* out_handle, VAddr entry_point, u64 arg, V
268 thread->context.fpscr = 268 thread->context.fpscr =
269 FPSCR_DEFAULT_NAN | FPSCR_FLUSH_TO_ZERO | FPSCR_ROUND_TOZERO; // 0x03C00000 269 FPSCR_DEFAULT_NAN | FPSCR_FLUSH_TO_ZERO | FPSCR_ROUND_TOZERO; // 0x03C00000
270 270
271 CASCADE_RESULT(*out_handle, Kernel::g_handle_table.Create(std::move(thread))); 271 CASCADE_RESULT(thread->guest_handle, Kernel::g_handle_table.Create(thread));
272 *out_handle = thread->guest_handle;
272 273
273 Core::System::GetInstance().PrepareReschedule(); 274 Core::System::GetInstance().PrepareReschedule();
274 275