From 8a1c8daca3bceecd29ba3c73bdd23f2f331f9e29 Mon Sep 17 00:00:00 2001 From: lazymio Date: Tue, 13 Feb 2024 19:11:22 +0800 Subject: [PATCH] Add a comment --- qemu/include/qemu/osdep.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qemu/include/qemu/osdep.h b/qemu/include/qemu/osdep.h index 1dd8ff9b..ad18b8dd 100644 --- a/qemu/include/qemu/osdep.h +++ b/qemu/include/qemu/osdep.h @@ -124,6 +124,8 @@ struct uc_struct; * * Issue: https://github.com/desktop/desktop/issues/12978 */ +// Even if we don't have sprr available (mostly in virtual machine), we still need MAP_JIT though there is no +// protection enforced. #if defined(__APPLE__) && defined(HAVE_PTHREAD_JIT_PROTECT) && (defined(__arm__) || defined(__aarch64__)) #define USE_MAP_JIT #endif