VERY experimental Nintendo Switch 2 emulator
C++
kernel: add missing TLR clear
Liamc00faac482bd
diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cppindex 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;