From a53f0e689638e8e6d83bc714dc7c289448b02eb1 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Thu, 7 Nov 2024 16:55:22 +0100 Subject: [PATCH] disable fastmem if the page size is not 4kb --- src/ARMJIT_Memory.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ARMJIT_Memory.cpp b/src/ARMJIT_Memory.cpp index 657b16b0..e641a96e 100644 --- a/src/ARMJIT_Memory.cpp +++ b/src/ARMJIT_Memory.cpp @@ -728,8 +728,7 @@ bool ARMJIT_Memory::IsFastMemSupported() isSupported = virtualAlloc2Ptr != nullptr; ARMJIT_Global::DeInit(); #else - // TODO: check page size is 4kb for posix - isSupported = true; + isSupported = __sysconf(_SC_PAGESIZE) == 0x1000; #endif initialised = true; }