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; }