summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Lioncash2018-12-27 21:20:49 -0500
committerGravatar Lioncash2018-12-27 21:50:16 -0500
commita81ff6f54c60101f0c55072cc0587678fb976cc3 (patch)
treeb71162dc34e7f6dcad3b3129734dfc1a763f19f4
parentkernel: Rename 'default' CPU core to 'ideal' core (diff)
downloadyuzu-a81ff6f54c60101f0c55072cc0587678fb976cc3.tar.gz
yuzu-a81ff6f54c60101f0c55072cc0587678fb976cc3.tar.xz
yuzu-a81ff6f54c60101f0c55072cc0587678fb976cc3.zip
kernel/process: Start the main thread using the specified ideal core
This matches kernel behavior in that processes are started using their specified ideal core, rather than always starting on core 0.
-rw-r--r--src/core/hle/kernel/process.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp
index 645c1d6f5..d5ca235b0 100644
--- a/src/core/hle/kernel/process.cpp
+++ b/src/core/hle/kernel/process.cpp
@@ -35,8 +35,8 @@ void SetupMainThread(Process& owner_process, KernelCore& kernel, VAddr entry_poi
35 35
36 // Initialize new "main" thread 36 // Initialize new "main" thread
37 const VAddr stack_top = owner_process.VMManager().GetTLSIORegionEndAddress(); 37 const VAddr stack_top = owner_process.VMManager().GetTLSIORegionEndAddress();
38 auto thread_res = Thread::Create(kernel, "main", entry_point, priority, 0, THREADPROCESSORID_0, 38 auto thread_res = Thread::Create(kernel, "main", entry_point, priority, 0,
39 stack_top, owner_process); 39 owner_process.GetIdealCore(), stack_top, owner_process);
40 40
41 SharedPtr<Thread> thread = std::move(thread_res).Unwrap(); 41 SharedPtr<Thread> thread = std::move(thread_res).Unwrap();
42 42