Mark ARM64 Macs as needing WX-exclusive memory protection

This commit is contained in:
Henrik Rydgård 2020-12-02 00:12:44 +01:00
parent c0a5fa3e8b
commit 5077a004ff

View file

@ -281,6 +281,8 @@ bool PlatformIsWXExclusive() {
// This might also come in useful for UWP (Universal Windows Platform) if I'm understanding things correctly.
#if defined(IOS) || PPSSPP_PLATFORM(UWP) || defined(__OpenBSD__)
return true;
#elif PPSSPP_PLATFORM(MAC) && PPSSPP_ARCH(ARM64)
return true;
#else
// Returning true here lets you test the W^X path on Windows and other non-W^X platforms.
return false;