mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Merge pull request #3082 from Subv/main_thread_processor
Kernel/Thread: Run the main thread in the CPU specified by the process' exheader.
This commit is contained in:
		
						commit
						c6b2cc2e27
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		|  | @ -497,8 +497,9 @@ void Thread::BoostPriority(u32 priority) { | |||
| 
 | ||||
| SharedPtr<Thread> SetupMainThread(u32 entry_point, u32 priority, SharedPtr<Process> owner_process) { | ||||
|     // Initialize new "main" thread
 | ||||
|     auto thread_res = Thread::Create("main", entry_point, priority, 0, THREADPROCESSORID_0, | ||||
|                                      Memory::HEAP_VADDR_END, owner_process); | ||||
|     auto thread_res = | ||||
|         Thread::Create("main", entry_point, priority, 0, owner_process->ideal_processor, | ||||
|                        Memory::HEAP_VADDR_END, owner_process); | ||||
| 
 | ||||
|     SharedPtr<Thread> thread = std::move(thread_res).Unwrap(); | ||||
| 
 | ||||
|  | @ -571,4 +572,4 @@ const std::vector<SharedPtr<Thread>>& GetThreadList() { | |||
|     return thread_list; | ||||
| } | ||||
| 
 | ||||
| } // namespace
 | ||||
| } // namespace Kernel
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue