ed8842a
From ebef39797bef17e7a28678f4b8370e6b63e10cc4 Mon Sep 17 00:00:00 2001
ed8842a
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
ed8842a
Date: Tue, 7 May 2013 20:42:05 +0200
ed8842a
Subject: [PATCH 2/5] 	* configure.ac: Don't use extended registers on
ed8842a
 x86_64. 	Reported by: Peter Jones.
ed8842a
ed8842a
---
ed8842a
 ChangeLog    | 5 +++++
ed8842a
 configure.ac | 2 ++
ed8842a
 2 files changed, 7 insertions(+)
ed8842a
ed8842a
diff --git a/configure.ac b/configure.ac
ed8842a
index 6c310f7..80549b0 100644
ed8842a
--- a/configure.ac
ed8842a
+++ b/configure.ac
ed8842a
@@ -464,7 +464,9 @@ if test "x$target_cpu" = xi386; then
ed8842a
   else
ed8842a
     TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
ed8842a
   fi
ed8842a
+fi
ed8842a
 
ed8842a
+if test "x$target_cpu" = xi386 || test "x$target_cpu" = xx86_64; then
ed8842a
   # Some toolchains enable these features by default, but they need
ed8842a
   # registers that aren't set up properly in GRUB.
ed8842a
   TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow"
ed8842a
-- 
ed8842a
1.8.2.1
ed8842a