disable fastmem if the page size is not 4kb

This commit is contained in:
RSDuck 2024-11-07 16:55:22 +01:00
parent a3ea5def4a
commit a53f0e6896
1 changed files with 1 additions and 2 deletions

View File

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