summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-10-22 00:46:19 +0200
committerLiam <byteslice@airmail.cc>2023-10-22 02:03:41 +0200
commitbb195c2c2bebdb62d349cf181479489a1a15b108 (patch)
treea087848e0a82765940a3f315e56fc5f43f4c9b4d /src/core/hle
parentkernel: update KProcess (diff)
downloadyuzu-bb195c2c2bebdb62d349cf181479489a1a15b108.tar
yuzu-bb195c2c2bebdb62d349cf181479489a1a15b108.tar.gz
yuzu-bb195c2c2bebdb62d349cf181479489a1a15b108.tar.bz2
yuzu-bb195c2c2bebdb62d349cf181479489a1a15b108.tar.lz
yuzu-bb195c2c2bebdb62d349cf181479489a1a15b108.tar.xz
yuzu-bb195c2c2bebdb62d349cf181479489a1a15b108.tar.zst
yuzu-bb195c2c2bebdb62d349cf181479489a1a15b108.zip
Diffstat (limited to 'src/core/hle')
-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 a882be403..ac0f215d7 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;