From 87aed560fb118c488a3ea2824ed3fbddf9930cd2 Mon Sep 17 00:00:00 2001
From: Raymond Toy <toy.raymond@gmail.com>
Date: Sun, 27 Apr 2014 18:18:15 -0700
Subject: [PATCH] Remove more sse2 stuff.

 * Exit if the chip doesn't support sse2.
 * Treat any mode setting as being the same as sse2 and return the
   sse2 core name.
---
 src/lisp/x86-arch.c | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/src/lisp/x86-arch.c b/src/lisp/x86-arch.c
index c694ceae9..841e2ccba 100644
--- a/src/lisp/x86-arch.c
+++ b/src/lisp/x86-arch.c
@@ -108,17 +108,16 @@ arch_init(fpu_mode_t mode)
 
     have_sse2 = arch_support_sse2() && os_support_sse2();
     
+    if (!have_sse2) {
+        fprintf(stderr, "CMUCL requires a SSE2 support; exiting\n");
+        abort();
+    }
+        
     switch (mode) {
       case AUTO:
-          if (have_sse2) {
-              return "lisp-sse2.core";
-          } else {
-              return "lisp-x87.core";
-          }
-          break;
       case X87:
-          return "lisp-x87.core";
-          break;
+          fprintf(stderr, "fpu mode AUTO or X87 is not longer supported.\n");
+          /* Fall through and return the sse2 core */
       case SSE2:
           return "lisp-sse2.core";
           break;
-- 
GitLab