From 345076a78a15a61e1545eec60e7661e13b2dc62f Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Sun, 22 Feb 2015 17:41:12 +0100 Subject: [PATCH] arm64: Fix compilation failure. Don't supply +nosimd to asm files. Otherwise +nosimd coming from flags forbids some of instructions used in cache_flush. --- configure.ac | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 94f96c47d..35f430a0a 100644 --- a/configure.ac +++ b/configure.ac @@ -719,7 +719,16 @@ if test x"$platform" != xemu ; then TARGET_CFLAGS="$TARGET_CFLAGS $grub_cv_target_cc_soft_float" ;; esac - TARGET_CCASFLAGS="$TARGET_CCASFLAGS $grub_cv_target_cc_soft_float" + case x"$grub_cv_target_cc_soft_float" in + x"-march=armv8-a+nofp+nosimd") + # +nosimd disables also the cache opcodes that we need in asm. + TARGET_CCASFLAGS="$TARGET_CCASFLAGS -march=armv8-a+nofp" + ;; + *) + TARGET_CCASFLAGS="$TARGET_CCASFLAGS $grub_cv_target_cc_soft_float" + ;; + esac + fi if test x"$target_cpu" = xsparc64 ; then