From a540df45a6fcca6b46c24dc7e7a810ea379328d5 Mon Sep 17 00:00:00 2001 From: mio Date: Fri, 20 Dec 2024 00:57:19 +0800 Subject: [PATCH] Only enable SPRR on physical machines --- qemu/include/tcg/tcg-apple-jit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/include/tcg/tcg-apple-jit.h b/qemu/include/tcg/tcg-apple-jit.h index ed996de5..f471403a 100644 --- a/qemu/include/tcg/tcg-apple-jit.h +++ b/qemu/include/tcg/tcg-apple-jit.h @@ -51,7 +51,7 @@ static inline uint64_t read_sprr_perm(void) } #endif -#if defined(__APPLE__) && defined(HAVE_PTHREAD_JIT_PROTECT) && (defined(__arm__) || defined(__aarch64__)) +#if defined(__APPLE__) && defined(HAVE_SPRR_MRS) && defined(HAVE_PTHREAD_JIT_PROTECT) && (defined(__arm__) || defined(__aarch64__)) QEMU_UNUSED_FUNC static inline uint8_t thread_mask() {