mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-16 12:09:07 +00:00
Update memory.cpp
This commit is contained in:
parent
0acd69d82c
commit
1bbb3a6e1c
@ -668,10 +668,12 @@ void* PS4_SYSV_ABI posix_mmap(void* addr, u64 len, s32 prot, s32 flags, s32 fd,
|
|||||||
}
|
}
|
||||||
|
|
||||||
s32 result = ORBIS_OK;
|
s32 result = ORBIS_OK;
|
||||||
if (True(mem_flags & Core::MemoryMapFlags::Anon) ||
|
if (True(mem_flags & Core::MemoryMapFlags::Anon)) {
|
||||||
True(mem_flags & Core::MemoryMapFlags::Stack)) {
|
|
||||||
result = memory->MapMemory(&addr_out, aligned_addr, aligned_size, mem_prot, mem_flags,
|
result = memory->MapMemory(&addr_out, aligned_addr, aligned_size, mem_prot, mem_flags,
|
||||||
Core::VMAType::Flexible, "anon", false);
|
Core::VMAType::Flexible, "anon", false);
|
||||||
|
} else if (True(mem_flags & Core::MemoryMapFlags::Stack)) {
|
||||||
|
result = memory->MapMemory(&addr_out, aligned_addr, aligned_size, mem_prot, mem_flags,
|
||||||
|
Core::VMAType::Stack, "anon", false);
|
||||||
} else if (True(mem_flags & Core::MemoryMapFlags::Void)) {
|
} else if (True(mem_flags & Core::MemoryMapFlags::Void)) {
|
||||||
result =
|
result =
|
||||||
memory->MapMemory(&addr_out, aligned_addr, aligned_size, Core::MemoryProt::NoAccess,
|
memory->MapMemory(&addr_out, aligned_addr, aligned_size, Core::MemoryProt::NoAccess,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user