summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2021-05-29 06:31:04 +0200
committerLioncash <mathew1800@gmail.com>2021-05-29 06:31:38 +0200
commit16ff0161b349624803c3a823a6518f4718f60ee6 (patch)
tree4130301a801025f6ae8e9bcb4eff6639fb28e77d /src
parentMerge pull request #6375 from lioncash/iofs (diff)
downloadyuzu-16ff0161b349624803c3a823a6518f4718f60ee6.tar
yuzu-16ff0161b349624803c3a823a6518f4718f60ee6.tar.gz
yuzu-16ff0161b349624803c3a823a6518f4718f60ee6.tar.bz2
yuzu-16ff0161b349624803c3a823a6518f4718f60ee6.tar.lz
yuzu-16ff0161b349624803c3a823a6518f4718f60ee6.tar.xz
yuzu-16ff0161b349624803c3a823a6518f4718f60ee6.tar.zst
yuzu-16ff0161b349624803c3a823a6518f4718f60ee6.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/k_thread.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cpp
index e3f08f256..3cf43d290 100644
--- a/src/core/hle/kernel/k_thread.cpp
+++ b/src/core/hle/kernel/k_thread.cpp
@@ -168,13 +168,13 @@ ResultCode KThread::Initialize(KThreadFunction func, uintptr_t arg, VAddr user_s
std::memset(static_cast<void*>(std::addressof(GetStackParameters())), 0,
sizeof(StackParameters));
- // Setup the TLS, if needed.
- if (type == ThreadType::User) {
- tls_address = owner->CreateTLSRegion();
- }
-
// Set parent, if relevant.
if (owner != nullptr) {
+ // Setup the TLS, if needed.
+ if (type == ThreadType::User) {
+ tls_address = owner->CreateTLSRegion();
+ }
+
parent = owner;
parent->Open();
parent->IncrementThreadCount();