From f652340bec10f3f0afc5eeef78fa211a1aba78ec Mon Sep 17 00:00:00 2001 From: Yurii Rashkovskii Date: Sun, 20 Feb 2022 07:46:30 -0800 Subject: [PATCH] Problem: Could not allocate dynamic translator buffer `Could not allocate dynamic translator buffer` error while trying to perform any memory-related operation. This happens on aarch64 (MacBook Pro M1) Solution: ensure aarch64 architecture is properly checked against Fixes #1556 --- qemu/include/qemu/osdep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/include/qemu/osdep.h b/qemu/include/qemu/osdep.h index cf0c94bb..a224baec 100644 --- a/qemu/include/qemu/osdep.h +++ b/qemu/include/qemu/osdep.h @@ -124,7 +124,7 @@ struct uc_struct; * * Issue: https://github.com/desktop/desktop/issues/12978 */ -#if defined(__APPLE__) && defined(HAVE_PTHREAD_JIT_PROTECT) && defined(__arm__) +#if defined(__APPLE__) && defined(HAVE_PTHREAD_JIT_PROTECT) && (defined(__arm__) || defined(__aarch64__)) #define USE_MAP_JIT #endif