VERY experimental Nintendo Switch 2 emulator
C++
kernel/process: Start the main thread using the specified ideal core
Lioncash852cb9423121
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cppindex 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" threadconst 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();