aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Native/macos_jit_support
diff options
context:
space:
mode:
authorTSR Berry <20988865+TSRBerry@users.noreply.github.com>2023-04-08 01:22:00 +0200
committerMary <thog@protonmail.com>2023-04-27 23:51:14 +0200
commitcee712105850ac3385cd0091a923438167433f9f (patch)
tree4a5274b21d8b7f938c0d0ce18736d3f2993b11b1 /ARMeilleure/Native/macos_jit_support
parentcd124bda587ef09668a971fa1cac1c3f0cfc9f21 (diff)
Move solution and projects to src
Diffstat (limited to 'ARMeilleure/Native/macos_jit_support')
-rw-r--r--ARMeilleure/Native/macos_jit_support/Makefile8
-rw-r--r--ARMeilleure/Native/macos_jit_support/support.c14
2 files changed, 0 insertions, 22 deletions
diff --git a/ARMeilleure/Native/macos_jit_support/Makefile b/ARMeilleure/Native/macos_jit_support/Makefile
deleted file mode 100644
index d6da35d5..00000000
--- a/ARMeilleure/Native/macos_jit_support/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-NAME = libarmeilleure-jitsupport.dylib
-
-all: ${NAME}
-
-${NAME}:
- clang -O3 -dynamiclib support.c -o ${NAME}
-clean:
- rm -f ${NAME}
diff --git a/ARMeilleure/Native/macos_jit_support/support.c b/ARMeilleure/Native/macos_jit_support/support.c
deleted file mode 100644
index 1b13d906..00000000
--- a/ARMeilleure/Native/macos_jit_support/support.c
+++ /dev/null
@@ -1,14 +0,0 @@
-#include <stddef.h>
-#include <string.h>
-#include <pthread.h>
-
-#include <libkern/OSCacheControl.h>
-
-void armeilleure_jit_memcpy(void *dst, const void *src, size_t n) {
- pthread_jit_write_protect_np(0);
- memcpy(dst, src, n);
- pthread_jit_write_protect_np(1);
-
- // Ensure that the instruction cache for this range is invalidated.
- sys_icache_invalidate(dst, n);
-}