diff options
-rw-r--r-- | arch/x86/kernel/i387.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kernel/i387.c b/arch/x86/kernel/i387.c index 1f11f5ce668f..2605c50b11d3 100644 --- a/arch/x86/kernel/i387.c +++ b/arch/x86/kernel/i387.c | |||
@@ -67,6 +67,12 @@ static void __cpuinit init_thread_xstate(void) | |||
67 | */ | 67 | */ |
68 | 68 | ||
69 | if (!HAVE_HWFP) { | 69 | if (!HAVE_HWFP) { |
70 | /* | ||
71 | * Disable xsave as we do not support it if i387 | ||
72 | * emulation is enabled. | ||
73 | */ | ||
74 | setup_clear_cpu_cap(X86_FEATURE_XSAVE); | ||
75 | setup_clear_cpu_cap(X86_FEATURE_XSAVEOPT); | ||
70 | xstate_size = sizeof(struct i387_soft_struct); | 76 | xstate_size = sizeof(struct i387_soft_struct); |
71 | return; | 77 | return; |
72 | } | 78 | } |