mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-27 16:04:22 +01:00
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.
This commit is contained in:
parent
f80bc712ea
commit
a81ff6f54c
@ -35,8 +35,8 @@ void SetupMainThread(Process& owner_process, KernelCore& kernel, VAddr entry_poi
|
|||||||
|
|
||||||
// Initialize new "main" thread
|
// Initialize new "main" thread
|
||||||
const VAddr stack_top = owner_process.VMManager().GetTLSIORegionEndAddress();
|
const VAddr stack_top = owner_process.VMManager().GetTLSIORegionEndAddress();
|
||||||
auto thread_res = Thread::Create(kernel, "main", entry_point, priority, 0, THREADPROCESSORID_0,
|
auto thread_res = Thread::Create(kernel, "main", entry_point, priority, 0,
|
||||||
stack_top, owner_process);
|
owner_process.GetIdealCore(), stack_top, owner_process);
|
||||||
|
|
||||||
SharedPtr<Thread> thread = std::move(thread_res).Unwrap();
|
SharedPtr<Thread> thread = std::move(thread_res).Unwrap();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user