Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Disable XSAVEOPT, until it is clear what's ...
details: https://anonhg.NetBSD.org/src/rev/45e94baddc2f
branches: trunk
changeset: 829736:45e94baddc2f
user: maxv <maxv%NetBSD.org@localhost>
date: Fri Feb 09 18:45:55 2018 +0000
description:
Disable XSAVEOPT, until it is clear what's wrong with it (PR/52966).
diffstat:
sys/arch/x86/x86/identcpu.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (33 lines):
diff -r 603324f0aec5 -r 45e94baddc2f sys/arch/x86/x86/identcpu.c
--- a/sys/arch/x86/x86/identcpu.c Fri Feb 09 18:31:52 2018 +0000
+++ b/sys/arch/x86/x86/identcpu.c Fri Feb 09 18:45:55 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: identcpu.c,v 1.68 2018/02/07 22:49:32 maya Exp $ */
+/* $NetBSD: identcpu.c,v 1.69 2018/02/09 18:45:55 maxv Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.68 2018/02/07 22:49:32 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.69 2018/02/09 18:45:55 maxv Exp $");
#include "opt_xen.h"
@@ -759,11 +759,12 @@
x86_fpu_save = FPU_SAVE_XSAVE;
+#if 0 /* XXX PR 52966 */
/* xsaveopt ought to be faster than xsave */
x86_cpuid2(0xd, 1, descs);
- if ((descs[0] & CPUID_PES1_XSAVEOPT) &&
- (cpu_vendor == CPUVENDOR_INTEL)) /* XXX PR 52966 */
+ if (descs[0] & CPUID_PES1_XSAVEOPT)
x86_fpu_save = FPU_SAVE_XSAVEOPT;
+#endif
/* Get features and maximum size of the save area */
x86_cpuid(0xd, descs);
Home |
Main Index |
Thread Index |
Old Index