blob: 9cadc3a3b94e4bdcab49669abd850e34738f594a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
$NetBSD: patch-ac,v 1.3 2002/08/25 19:21:45 jlam Exp $
--- flow/cpuinfo.cc.orig Mon Mar 18 12:39:39 2002
+++ flow/cpuinfo.cc
@@ -204,6 +204,7 @@
: /* no input */
: "memory"
);
+#if defined(__NetBSD__) && __NetBSD_Version__ >= 105260000
// SSE must be supported by the OS, if it's not, any SSE insn will
// trigger an invalid opcode exception, to check for this, a SIGILL
// handler is installed and a SSE insn run. If the handler is called,
@@ -226,6 +227,7 @@
}
signal(SIGILL, oldHandler);
}
+#endif
#endif /* HAVE_X86_SSE */
}
|