mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-11 18:48:59 +00:00
Update memory.cpp
This commit is contained in:
parent
fb7b90e024
commit
3c734e7779
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ s32 MemoryManager::MapMemory(void** out_addr, VAddr virtual_addr, u64 size, Memo
|
|||
// When MemoryMapFlags::Fixed is not specified, and mapped_addr is 0,
|
||||
// search from address 0x200000000 instead.
|
||||
alignment = alignment > 0 ? alignment : 16_KB;
|
||||
mapped_addr = mapped_addr == 0 ? 0x200000000 : mapped_addr;
|
||||
mapped_addr = virtual_addr == 0 ? 0x200000000 : mapped_addr;
|
||||
mapped_addr = SearchFree(mapped_addr, size, alignment);
|
||||
if (mapped_addr == -1) {
|
||||
// No suitable memory areas to map to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue