mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-10-01 13:48:34 +00:00
Accurate phys_addr for non-direct mappings
This commit is contained in:
parent
2faa5ac8a5
commit
f0852650cc
1 changed files with 1 additions and 1 deletions
|
@ -335,7 +335,7 @@ s32 MemoryManager::MapMemory(void** out_addr, VAddr virtual_addr, u64 size, Memo
|
|||
new_vma.prot = prot;
|
||||
new_vma.name = name;
|
||||
new_vma.type = type;
|
||||
new_vma.phys_base = phys_addr;
|
||||
new_vma.phys_base = phys_addr == -1 ? 0 : phys_addr;
|
||||
new_vma.is_exec = is_exec;
|
||||
|
||||
if (type == VMAType::Reserved) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue