CMUCL commit: src/lisp (NetBSD-os.c)

Robert Swindells rswindells at common-lisp.net
Fri Oct 16 15:38:03 CEST 2009


    Date: Friday, October 16, 2009 @ 09:38:03
  Author: rswindells
    Path: /project/cmucl/cvsroot/src/lisp

Modified: NetBSD-os.c

Test fpu_mode instead of calling arch_support_sse2() to match
Linux and FreeBSD.


-------------+
 NetBSD-os.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


Index: src/lisp/NetBSD-os.c
diff -u src/lisp/NetBSD-os.c:1.12 src/lisp/NetBSD-os.c:1.13
--- src/lisp/NetBSD-os.c:1.12	Sun Aug 30 15:17:55 2009
+++ src/lisp/NetBSD-os.c	Fri Oct 16 09:38:02 2009
@@ -15,7 +15,7 @@
  * Frobbed for OpenBSD by Pierre R. Mai, 2001.
  * Frobbed for NetBSD by Pierre R. Mai, 2002.
  *
- * $Header: /project/cmucl/cvsroot/src/lisp/NetBSD-os.c,v 1.12 2009-08-30 19:17:55 rswindells Rel $
+ * $Header: /project/cmucl/cvsroot/src/lisp/NetBSD-os.c,v 1.13 2009-10-16 13:38:02 rswindells Exp $
  *
  */
 
@@ -379,7 +379,7 @@
     DPRINTF(0, (stderr, "restore_fpu:  cw = %08x\n", (int)cw));
     __asm__ __volatile__ ("fldcw %0"::"m"(*&cw));
 
-    if (arch_support_sse2()) {
+    if (fpu_mode == SSE2) {
 	u_int32_t mxcsr = env_xmm->en_mxcsr;
 
 	DPRINTF(0, (stderr, "restore_fpu:  mxcsr (raw) = %04x\n", mxcsr));



More information about the cmucl-commit mailing list