aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/k_thread.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-10-21 18:46:19 -0400
committerLiam <byteslice@airmail.cc>2023-10-21 20:03:41 -0400
commitc00faac482bd9975e95ac04f18d127b9e9161768 (patch)
treea087848e0a82765940a3f315e56fc5f43f4c9b4d /src/core/hle/kernel/k_thread.cpp
parent62e106dbe8e55e59a6a3c00f3bae2bb898ea54cb (diff)
kernel: add missing TLR clear
Diffstat (limited to 'src/core/hle/kernel/k_thread.cpp')
-rw-r--r--src/core/hle/kernel/k_thread.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cpp
index a882be4032..ac0f215d74 100644
--- a/src/core/hle/kernel/k_thread.cpp
+++ b/src/core/hle/kernel/k_thread.cpp
@@ -215,6 +215,7 @@ Result KThread::Initialize(KThreadFunction func, uintptr_t arg, KProcessAddress
// Setup the TLS, if needed.
if (type == ThreadType::User) {
R_TRY(owner->CreateThreadLocalRegion(std::addressof(m_tls_address)));
+ owner->GetMemory().ZeroBlock(m_tls_address, Svc::ThreadLocalRegionSize);
}
m_parent = owner;