mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 19:48:02 -05:00
Memory: Support more regions in the VAddr-PAddr translation functions
Also adds better documentation and removes the one-off reimplementation of the function in pica.h.
This commit is contained in:
@ -181,10 +181,15 @@ inline const char* GetCharPointer(const VAddr address) {
|
||||
return (const char *)GetPointer(address);
|
||||
}
|
||||
|
||||
/// Converts a physical address to virtual address
|
||||
VAddr PhysicalToVirtualAddress(PAddr addr);
|
||||
|
||||
/// Converts a virtual address to physical address
|
||||
/**
|
||||
* Converts a virtual address inside a region with 1:1 mapping to physical memory to a physical
|
||||
* address. This should be used by services to translate addresses for use by the hardware.
|
||||
*/
|
||||
PAddr VirtualToPhysicalAddress(VAddr addr);
|
||||
|
||||
/**
|
||||
* Undoes a mapping performed by VirtualToPhysicalAddress().
|
||||
*/
|
||||
VAddr PhysicalToVirtualAddress(PAddr addr);
|
||||
|
||||
} // namespace
|
||||
|
Reference in New Issue
Block a user