Skip to content

Commit

Permalink
Mark ARM64 Macs as needing WX-exclusive memory protection
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Dec 2, 2020
1 parent c0a5fa3 commit 5077a00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Common/MemoryUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5077a00

Please sign in to comment.