Module Name: src
Committed By: maxv
Date: Tue Oct 29 12:39:46 UTC 2019
Modified Files:
src/sys/arch/x86/x86: identcpu.c
Log Message:
Enable XSAVEOPT.
To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/sys/arch/x86/x86/identcpu.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/x86/x86/identcpu.c
diff -u src/sys/arch/x86/x86/identcpu.c:1.97 src/sys/arch/x86/x86/identcpu.c:1.98
--- src/sys/arch/x86/x86/identcpu.c:1.97 Mon Oct 21 10:09:24 2019
+++ src/sys/arch/x86/x86/identcpu.c Tue Oct 29 12:39:46 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: identcpu.c,v 1.97 2019/10/21 10:09:24 maxv Exp $ */
+/* $NetBSD: identcpu.c,v 1.98 2019/10/29 12:39:46 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.97 2019/10/21 10:09:24 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.98 2019/10/29 12:39:46 maxv Exp $");
#include "opt_xen.h"
@@ -804,11 +804,9 @@ cpu_probe_fpu(struct cpu_info *ci)
x86_fpu_save = FPU_SAVE_XSAVE;
-#if 0 /* XXX PR 52966 */
x86_cpuid2(0xd, 1, descs);
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);