blob: cb944ae37bf42e3406ad6d9247ca63873a11f012 (
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.2 2002/07/17 07:54:04 skrll 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 */
}
|