mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Kernel/Thread: move thread queue, current thread, and scheduling related function into the manager
As we touched it, remove IPC::GetCommandBuffer
This commit is contained in:
		
							parent
							
								
									876729ab52
								
							
						
					
					
						commit
						0478bc3dee
					
				
					 14 changed files with 123 additions and 146 deletions
				
			
		|  | @ -134,7 +134,8 @@ public: | |||
|             if (GDBStub::IsConnected()) { | ||||
|                 parent.jit->HaltExecution(); | ||||
|                 parent.SetPC(pc); | ||||
|                 Kernel::Thread* thread = Kernel::GetCurrentThread(); | ||||
|                 Kernel::Thread* thread = | ||||
|                     Core::System::GetInstance().Kernel().GetThreadManager().GetCurrentThread(); | ||||
|                 parent.SaveContext(thread->context); | ||||
|                 GDBStub::Break(); | ||||
|                 GDBStub::SendTrap(thread, 5); | ||||
|  |  | |||
|  | @ -604,7 +604,8 @@ void ARMul_State::ServeBreak() { | |||
|     if (last_bkpt_hit) { | ||||
|         Reg[15] = last_bkpt.address; | ||||
|     } | ||||
|     Kernel::Thread* thread = Kernel::GetCurrentThread(); | ||||
|     Kernel::Thread* thread = | ||||
|         Core::System::GetInstance().Kernel().GetThreadManager().GetCurrentThread(); | ||||
|     Core::CPU().SaveContext(thread->context); | ||||
|     if (last_bkpt_hit || GDBStub::GetCpuStepFlag()) { | ||||
|         last_bkpt_hit = false; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue