nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0465-configure.ac-Don-t-disable-extended-registers-on-emu.patch

f96e0b
From 69c5d972c80f796e61cdc3f6cdd88c227070872e Mon Sep 17 00:00:00 2001
f96e0b
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
f96e0b
Date: Wed, 8 May 2013 11:01:11 +0200
f96e0b
Subject: [PATCH 465/482] 	* configure.ac: Don't disable extended
f96e0b
 registers on emu.
f96e0b
f96e0b
---
f96e0b
 ChangeLog    | 4 ++++
f96e0b
 configure.ac | 2 +-
f96e0b
 2 files changed, 5 insertions(+), 1 deletion(-)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index db874e5..39dc051 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,3 +1,7 @@
f96e0b
+2013-05-08  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
+
f96e0b
+	* configure.ac: Don't disable extended registers on emu.
f96e0b
+
f96e0b
 2013-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
 
f96e0b
 	* configure.ac: Don't use extended registers on x86_64.
f96e0b
diff --git a/configure.ac b/configure.ac
f96e0b
index 80549b0..fa0e00a 100644
f96e0b
--- a/configure.ac
f96e0b
+++ b/configure.ac
f96e0b
@@ -466,7 +466,7 @@ if test "x$target_cpu" = xi386; then
f96e0b
   fi
f96e0b
 fi
f96e0b
 
f96e0b
-if test "x$target_cpu" = xi386 || test "x$target_cpu" = xx86_64; then
f96e0b
+if ( test "x$target_cpu" = xi386 || test "x$target_cpu" = xx86_64 ) && test "x$platform" != xemu; then
f96e0b
   # Some toolchains enable these features by default, but they need
f96e0b
   # registers that aren't set up properly in GRUB.
f96e0b
   TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow"
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b