From 2c2e868de0dfa95e1f6710f7c41be7a66a39783b Mon Sep 17 00:00:00 2001 From: WaluigiWare64 <68647953+WaluigiWare64@users.noreply.github.com> Date: Mon, 22 Mar 2021 20:14:21 +0000 Subject: Disable JIT write-protect when de-initialising on ARM64 macOS --- src/ARMJIT.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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(); -- cgit v1.2.3