aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/process.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-12-27 21:20:49 -0500
committerLioncash <mathew1800@gmail.com>2018-12-27 21:50:16 -0500
commit852cb94231213a7e0d2127bb783fe03b9dff1504 (patch)
treeb71162dc34e7f6dcad3b3129734dfc1a763f19f4 /src/core/hle/kernel/process.cpp
parent50aed993399e4919f9c1caf88570d6097c88c22d (diff)
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.
Diffstat (limited to 'src/core/hle/kernel/process.cpp')
-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 645c1d6f5f..d5ca235b0e 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
// Initialize new "main" thread
const VAddr stack_top = owner_process.VMManager().GetTLSIORegionEndAddress();
- auto thread_res = Thread::Create(kernel, "main", entry_point, priority, 0, THREADPROCESSORID_0,
- stack_top, owner_process);
+ auto thread_res = Thread::Create(kernel, "main", entry_point, priority, 0,
+ owner_process.GetIdealCore(), stack_top, owner_process);
SharedPtr<Thread> thread = std::move(thread_res).Unwrap();