summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--target-mips/kvm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/target-mips/kvm.c b/target-mips/kvm.c
index 844e5bbe5f..97fd51a02f 100644
--- a/target-mips/kvm.c
+++ b/target-mips/kvm.c
@@ -61,6 +61,13 @@ int kvm_arch_init_vcpu(CPUState *cs)
 
 void kvm_mips_reset_vcpu(MIPSCPU *cpu)
 {
+    CPUMIPSState *env = &cpu->env;
+
+    if (env->CP0_Config1 & (1 << CP0C1_FP)) {
+        fprintf(stderr, "Warning: FPU not supported with KVM, disabling\n");
+        env->CP0_Config1 &= ~(1 << CP0C1_FP);
+    }
+
     DPRINTF("%s\n", __func__);
 }