mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Kernel/Memory: Make IsValidPhysicalAddress not go through the current process' virtual memory mapping.
This commit is contained in:
		
							parent
							
								
									b178089251
								
							
						
					
					
						commit
						f18a176b60
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -208,8 +208,7 @@ bool IsValidVirtualAddress(const VAddr vaddr) { | |||
| } | ||||
| 
 | ||||
| bool IsValidPhysicalAddress(const PAddr paddr) { | ||||
|     boost::optional<VAddr> vaddr = PhysicalToVirtualAddress(paddr); | ||||
|     return vaddr && IsValidVirtualAddress(*vaddr); | ||||
|     return GetPhysicalPointer(paddr) != nullptr; | ||||
| } | ||||
| 
 | ||||
| u8* GetPointer(const VAddr vaddr) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue