Skip to content
Snippets Groups Projects
Commit 03f8a6a6 authored by rtoy's avatar rtoy
Browse files

As reported by Robert Swindells, cmucl-imp, 2009-10-15, we should not

use arch_support_sse2 here in case we're running an x87 core on a chip
with SSE2 support.
parent 59169161
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* Much hacked by Paul Werkowski * Much hacked by Paul Werkowski
* GENCGC support by Douglas Crosher, 1996, 1997. * GENCGC support by Douglas Crosher, 1996, 1997.
* *
* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/FreeBSD-os.c,v 1.30 2009/06/11 16:04:01 rtoy Rel $ * $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/FreeBSD-os.c,v 1.31 2009/10/15 15:05:51 rtoy Exp $
* *
*/ */
...@@ -340,7 +340,7 @@ restore_fpu(ucontext_t *scp) ...@@ -340,7 +340,7 @@ restore_fpu(ucontext_t *scp)
__asm__ __volatile__ ("fldcw %0"::"m"(*&cw)); __asm__ __volatile__ ("fldcw %0"::"m"(*&cw));
#ifdef FEATURE_SSE2 #ifdef FEATURE_SSE2
if (arch_support_sse2()) { if (fpu_mode == SSE2) {
u_int32_t mxcsr = env_xmm->en_mxcsr; u_int32_t mxcsr = env_xmm->en_mxcsr;
DPRINTF(0, (stderr, "restore_fpu: mxcsr (raw) = %04x\n", mxcsr)); DPRINTF(0, (stderr, "restore_fpu: mxcsr (raw) = %04x\n", mxcsr));
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* GENCGC support by Douglas Crosher, 1996, 1997. * GENCGC support by Douglas Crosher, 1996, 1997.
* Alpha support by Julian Dolby, 1999. * Alpha support by Julian Dolby, 1999.
* *
* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/Linux-os.c,v 1.43 2009/01/06 02:28:14 agoncharov Rel $ * $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/Linux-os.c,v 1.44 2009/10/15 15:05:51 rtoy Exp $
* *
*/ */
...@@ -430,7 +430,7 @@ restore_fpu(ucontext_t *context) ...@@ -430,7 +430,7 @@ restore_fpu(ucontext_t *context)
DPRINTF(0, (stderr, "restore_fpu: cw = %08x\n", cw)); DPRINTF(0, (stderr, "restore_fpu: cw = %08x\n", cw));
__asm__ __volatile__ ("fldcw %0" : : "m" (*&cw)); __asm__ __volatile__ ("fldcw %0" : : "m" (*&cw));
#ifdef FEATURE_SSE2 #ifdef FEATURE_SSE2
if (arch_support_sse2()) { if (fpu_mode == SSE2) {
struct _fpstate *fpstate; struct _fpstate *fpstate;
unsigned int mxcsr; unsigned int mxcsr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment