mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	AddressArbiter: Ported arbitration type 2 from 3dmoo.
(Thanks 3dmoo!)
This commit is contained in:
		
							parent
							
								
									dd21f986b8
								
							
						
					
					
						commit
						0276a75f24
					
				
					 1 changed files with 11 additions and 0 deletions
				
			
		|  | @ -51,6 +51,17 @@ ResultCode ArbitrateAddress(Handle handle, ArbitrationType type, u32 address, s3 | |||
|             HLE::Reschedule(__func__); | ||||
|         } | ||||
|         break; | ||||
|      | ||||
|     case ArbitrationType::DecrementAndWaitIfLessThan: | ||||
|     { | ||||
|         s32 memory_value = Memory::Read32(address) - 1; | ||||
|         Memory::Write32(address, memory_value); | ||||
|         if (memory_value <= value) { | ||||
|             Kernel::WaitCurrentThread(WAITTYPE_ARB, handle, address); | ||||
|             HLE::Reschedule(__func__); | ||||
|         } | ||||
|         break; | ||||
|     } | ||||
| 
 | ||||
|     default: | ||||
|         LOG_ERROR(Kernel, "unknown type=%d", type); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue