mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-14 21:37:56 -05:00
Memory: Add GetPhysicalPointer helper function
This commit is contained in:
@ -192,4 +192,13 @@ PAddr VirtualToPhysicalAddress(VAddr addr);
|
||||
*/
|
||||
VAddr PhysicalToVirtualAddress(PAddr addr);
|
||||
|
||||
/**
|
||||
* Gets a pointer to the memory region beginning at the specified physical address.
|
||||
*
|
||||
* @note This is currently implemented using PhysicalToVirtualAddress().
|
||||
*/
|
||||
inline u8* GetPhysicalPointer(PAddr address) {
|
||||
return GetPointer(PhysicalToVirtualAddress(address));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
Reference in New Issue
Block a user