diff --git a/qemu/accel/tcg/translate-all.c b/qemu/accel/tcg/translate-all.c index f527628c..4ec6c033 100644 --- a/qemu/accel/tcg/translate-all.c +++ b/qemu/accel/tcg/translate-all.c @@ -2171,7 +2171,7 @@ void tcg_flush_softmmu_tlb(struct uc_struct *uc) } -#ifdef HAVE_PTHREAD_JIT_PROTECT +#if defined(__APPLE__) && defined(HAVE_PTHREAD_JIT_PROTECT) && (defined(__arm__) || defined(__aarch64__)) static bool tb_exec_is_locked(struct uc_struct *uc) { return uc->current_executable;