@samitouri / QOSamiQemu / commits / 336a4c6539

hvf: arm: unbreak the x86 build

We don't really have any great choices here, so use the __aarch64__ define to unbreak the x86 build. Once the CI moves away from macOS 15.1 SDK to... 15.2 even we can get rid of these SME stubs horrible hacks. Signed-off-by: Mohamed Mediouni <mohamed@unpredictable.fr Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Link: https://lore.kernel.org/r/20260307181856.2209-4-mohamed@unpredictable.fr Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Mohamed Mediouni committed Mar 7, 2026 at 19:18 UTC 336a4c6539b67c0cbd3679c4848c27d0a0aa38f3
1 file changed +1 -1
target/arm/hvf_arm.h
+1 -1
@@ -27,7 +27,7 @@ void hvf_arm_set_cpu_features_from_host(ARMCPU *cpu);
27 * headers are not available until we raise our minimum macOS version.
28 */
29 #ifdef __MAC_OS_X_VERSION_MAX_ALLOWED
30 - #if (__MAC_OS_X_VERSION_MAX_ALLOWED >= 150200)
30 + #if (__MAC_OS_X_VERSION_MAX_ALLOWED >= 150200) && defined(__aarch64__)
31 #include "system/hvf_int.h"
32
33 static inline bool hvf_arm_sme2_supported(void)