Revision b3baa152 target-i386/kvm.c

b/target-i386/kvm.c
482 482
        cpu_x86_cpuid(env, i, 0, &c->eax, &c->ebx, &c->ecx, &c->edx);
483 483
    }
484 484

  
485
    /* Call Centaur's CPUID instructions they are supported. */
486
    if (env->cpuid_xlevel2 > 0) {
487
        env->cpuid_ext4_features &=
488
            kvm_arch_get_supported_cpuid(env, 0xC0000001, 0, R_EDX);
489
        cpu_x86_cpuid(env, 0xC0000000, 0, &limit, &unused, &unused, &unused);
490

  
491
        for (i = 0xC0000000; i <= limit; i++) {
492
            c = &cpuid_data.entries[cpuid_i++];
493

  
494
            c->function = i;
495
            c->flags = 0;
496
            cpu_x86_cpuid(env, i, 0, &c->eax, &c->ebx, &c->ecx, &c->edx);
497
        }
498
    }
499

  
485 500
    cpuid_data.cpuid.nent = cpuid_i;
486 501

  
487 502
#ifdef KVM_CAP_MCE

Also available in: Unified diff