mirror of https://github.com/PCSX2/pcsx2.git
Common: Missed MAP_FIXED -> MAP_FIXED_NOREPLACE
This commit is contained in:
parent
d765f2e15c
commit
92b707db99
|
@ -249,7 +249,7 @@ void* HostSys::Mmap(void* base, size_t size, const PageProtectionMode& mode)
|
||||||
|
|
||||||
u32 flags = MAP_PRIVATE | MAP_ANONYMOUS;
|
u32 flags = MAP_PRIVATE | MAP_ANONYMOUS;
|
||||||
if (base)
|
if (base)
|
||||||
flags |= MAP_FIXED;
|
flags |= MAP_FIXED_NOREPLACE;
|
||||||
|
|
||||||
#if defined(__APPLE__) && defined(_M_ARM64)
|
#if defined(__APPLE__) && defined(_M_ARM64)
|
||||||
if (mode.CanExecute())
|
if (mode.CanExecute())
|
||||||
|
|
Loading…
Reference in New Issue