mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 21:37:42 -07:00
disable fastmem if the page size is not 4kb
This commit is contained in:
parent
a3ea5def4a
commit
a53f0e6896
@ -728,8 +728,7 @@ bool ARMJIT_Memory::IsFastMemSupported()
|
|||||||
isSupported = virtualAlloc2Ptr != nullptr;
|
isSupported = virtualAlloc2Ptr != nullptr;
|
||||||
ARMJIT_Global::DeInit();
|
ARMJIT_Global::DeInit();
|
||||||
#else
|
#else
|
||||||
// TODO: check page size is 4kb for posix
|
isSupported = __sysconf(_SC_PAGESIZE) == 0x1000;
|
||||||
isSupported = true;
|
|
||||||
#endif
|
#endif
|
||||||
initialised = true;
|
initialised = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user