Skip to content

Commit a540df4

Browse files
committed
Only enable SPRR on physical machines
1 parent 1ad2da3 commit a540df4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qemu/include/tcg/tcg-apple-jit.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static inline uint64_t read_sprr_perm(void)
5151
}
5252
#endif
5353

54-
#if defined(__APPLE__) && defined(HAVE_PTHREAD_JIT_PROTECT) && (defined(__arm__) || defined(__aarch64__))
54+
#if defined(__APPLE__) && defined(HAVE_SPRR_MRS) && defined(HAVE_PTHREAD_JIT_PROTECT) && (defined(__arm__) || defined(__aarch64__))
5555

5656
QEMU_UNUSED_FUNC static inline uint8_t thread_mask()
5757
{

0 commit comments

Comments
 (0)