diff options
author | WaluigiWare64 <68647953+WaluigiWare64@users.noreply.github.com> | 2021-03-22 20:14:21 +0000 |
---|---|---|
committer | WaluigiWare64 <68647953+WaluigiWare64@users.noreply.github.com> | 2021-03-22 20:14:21 +0000 |
commit | 2c2e868de0dfa95e1f6710f7c41be7a66a39783b (patch) | |
tree | d5d9ce507b445cf018e265e024ee1c8651b57879 /src/ARMJIT.cpp | |
parent | ac49d8e25cd9e784fca7d58b8548b033708b7960 (diff) |
Disable JIT write-protect when de-initialising on ARM64 macOS
Diffstat (limited to 'src/ARMJIT.cpp')
-rw-r--r-- | src/ARMJIT.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ARMJIT.cpp b/src/ARMJIT.cpp index c326d9a..b3dae1e 100644 --- a/src/ARMJIT.cpp +++ b/src/ARMJIT.cpp @@ -320,6 +320,9 @@ void Init() void DeInit() { + #if defined(__APPLE__) && defined(__aarch64__) + pthread_jit_write_protect_np(false); + #endif ResetBlockCache(); ARMJIT_Memory::DeInit(); |