|
@@ -528,7 +528,7 @@ static inline void fpregs_activate(struct fpu *fpu)
|
|
static inline void
|
|
static inline void
|
|
switch_fpu_prepare(struct fpu *old_fpu, int cpu)
|
|
switch_fpu_prepare(struct fpu *old_fpu, int cpu)
|
|
{
|
|
{
|
|
- if (old_fpu->initialized) {
|
|
|
|
|
|
+ if (static_cpu_has(X86_FEATURE_FPU) && old_fpu->initialized) {
|
|
if (!copy_fpregs_to_fpstate(old_fpu))
|
|
if (!copy_fpregs_to_fpstate(old_fpu))
|
|
old_fpu->last_cpu = -1;
|
|
old_fpu->last_cpu = -1;
|
|
else
|
|
else
|