diff --git a/rpcs3/util/vm_native.cpp b/rpcs3/util/vm_native.cpp index 0fc1d878e9..1eff83ef77 100644 --- a/rpcs3/util/vm_native.cpp +++ b/rpcs3/util/vm_native.cpp @@ -259,7 +259,11 @@ namespace utils } #ifdef __APPLE__ +#ifdef ARCH_ARM64 + auto ptr = ::mmap(use_addr, size, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE | MAP_JIT | c_map_noreserve, -1, 0); +#else auto ptr = ::mmap(use_addr, size, PROT_NONE, MAP_ANON | MAP_PRIVATE | MAP_JIT | c_map_noreserve, -1, 0); +#endif #else auto ptr = ::mmap(use_addr, size, PROT_NONE, MAP_ANON | MAP_PRIVATE | c_map_noreserve, -1, 0); #endif