summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_thread.cpp
diff options
context:
space:
mode:
authorMai M <mathew1800@gmail.com>2022-06-02 22:34:41 +0200
committerGitHub <noreply@github.com>2022-06-02 22:34:41 +0200
commit5c0a31e29f2a750ffc3a9b9d716f7630d6c2abca (patch)
tree94e496ad50f61c0f2f04e178c4407ed26ddec21e /src/core/hle/kernel/k_thread.cpp
parentMerge pull request #8409 from liamwhite/tdesc-fix (diff)
parentcore/debugger: Support reading guest thread names (diff)
downloadyuzu-5c0a31e29f2a750ffc3a9b9d716f7630d6c2abca.tar
yuzu-5c0a31e29f2a750ffc3a9b9d716f7630d6c2abca.tar.gz
yuzu-5c0a31e29f2a750ffc3a9b9d716f7630d6c2abca.tar.bz2
yuzu-5c0a31e29f2a750ffc3a9b9d716f7630d6c2abca.tar.lz
yuzu-5c0a31e29f2a750ffc3a9b9d716f7630d6c2abca.tar.xz
yuzu-5c0a31e29f2a750ffc3a9b9d716f7630d6c2abca.tar.zst
yuzu-5c0a31e29f2a750ffc3a9b9d716f7630d6c2abca.zip
Diffstat (limited to 'src/core/hle/kernel/k_thread.cpp')
-rw-r--r--src/core/hle/kernel/k_thread.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cpp
index ab9ce6a86..940334f59 100644
--- a/src/core/hle/kernel/k_thread.cpp
+++ b/src/core/hle/kernel/k_thread.cpp
@@ -198,6 +198,10 @@ ResultCode KThread::Initialize(KThreadFunction func, uintptr_t arg, VAddr user_s
resource_limit_release_hint = false;
cpu_time = 0;
+ // Set debug context.
+ stack_top = user_stack_top;
+ argument = arg;
+
// Clear our stack parameters.
std::memset(static_cast<void*>(std::addressof(GetStackParameters())), 0,
sizeof(StackParameters));