Revision a0fa8208
b/target-i386/cpuid.c | ||
---|---|---|
1180 | 1180 |
break; |
1181 | 1181 |
case 0xA: |
1182 | 1182 |
/* Architectural Performance Monitoring Leaf */ |
1183 |
*eax = 0; |
|
1184 |
*ebx = 0; |
|
1185 |
*ecx = 0; |
|
1186 |
*edx = 0; |
|
1183 |
if (kvm_enabled()) { |
|
1184 |
KVMState *s = env->kvm_state; |
|
1185 |
|
|
1186 |
*eax = kvm_arch_get_supported_cpuid(s, 0xA, count, R_EAX); |
|
1187 |
*ebx = kvm_arch_get_supported_cpuid(s, 0xA, count, R_EBX); |
|
1188 |
*ecx = kvm_arch_get_supported_cpuid(s, 0xA, count, R_ECX); |
|
1189 |
*edx = kvm_arch_get_supported_cpuid(s, 0xA, count, R_EDX); |
|
1190 |
} else { |
|
1191 |
*eax = 0; |
|
1192 |
*ebx = 0; |
|
1193 |
*ecx = 0; |
|
1194 |
*edx = 0; |
|
1195 |
} |
|
1187 | 1196 |
break; |
1188 | 1197 |
case 0xD: |
1189 | 1198 |
/* Processor Extended State */ |
Also available in: Unified diff