mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-28 14:56:35 +00:00
MemoryUtil: Remove availability checks for macOS 11
This commit is contained in:
parent
ad79a62d22
commit
7213cdd439
1 changed files with 2 additions and 8 deletions
|
@ -96,12 +96,9 @@ void JITPageWriteEnableExecuteDisable()
|
||||||
{
|
{
|
||||||
#if defined(_M_ARM_64) && defined(__APPLE__)
|
#if defined(_M_ARM_64) && defined(__APPLE__)
|
||||||
if (JITPageWriteNestCounter() == 0)
|
if (JITPageWriteNestCounter() == 0)
|
||||||
{
|
|
||||||
if (__builtin_available(macOS 11.0, *))
|
|
||||||
{
|
{
|
||||||
pthread_jit_write_protect_np(0);
|
pthread_jit_write_protect_np(0);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
JITPageWriteNestCounter()++;
|
JITPageWriteNestCounter()++;
|
||||||
}
|
}
|
||||||
|
@ -118,12 +115,9 @@ void JITPageWriteDisableExecuteEnable()
|
||||||
|
|
||||||
#if defined(_M_ARM_64) && defined(__APPLE__)
|
#if defined(_M_ARM_64) && defined(__APPLE__)
|
||||||
if (JITPageWriteNestCounter() == 0)
|
if (JITPageWriteNestCounter() == 0)
|
||||||
{
|
|
||||||
if (__builtin_available(macOS 11.0, *))
|
|
||||||
{
|
{
|
||||||
pthread_jit_write_protect_np(1);
|
pthread_jit_write_protect_np(1);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue