LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File grub2-ppc64le-03-disable-creation-of-vsx-and-altivec-instructions.patch of Package grub2 (Project home:Ledest:bashisms)

From f3b10c3a7e098f22a6f3863c3b56a483e3fe96a7 Mon Sep 17 00:00:00 2001
From: Ram Pai <linuxram@us.ibm.com>
Date: Fri, 28 Feb 2014 20:17:34 +0000
Subject: [PATCH 03/23] disable creation of vsx and altivec instructions.

These instructions fault on power7.

Signed-off-by: Ram Pai <linuxram@us.ibm.com>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 7b9d7ed..ded7dbc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -75,7 +75,7 @@ grub_TRANSFORM([grub-file])
 if test "x$TARGET_CFLAGS" = x; then
   if test "x$target_cpu" = xpowerpc64le; then
      #HACK till savegpr/addgpr is supported
-     TARGET_CFLAGS="$TARGET_CFLAGS -O1"
+     TARGET_CFLAGS="$TARGET_CFLAGS -O1 -mno-altivec -mno-vsx"
   else
      TARGET_CFLAGS="$TARGET_CFLAGS -Os"
   fi
-- 
1.8.3.1