|
@@ -5559,7 +5559,7 @@ void cpu_x86_cpuid(CPUX86State *env, uint32_t index, uint32_t count,
|
|
* supports. Features can be further restricted by userspace, but not
|
|
* supports. Features can be further restricted by userspace, but not
|
|
* made more permissive.
|
|
* made more permissive.
|
|
*/
|
|
*/
|
|
- x86_cpu_get_supported_cpuid(0x12, index, eax, ebx, ecx, edx);
|
|
|
|
|
|
+ x86_cpu_get_supported_cpuid(0x12, count, eax, ebx, ecx, edx);
|
|
|
|
|
|
if (count == 0) {
|
|
if (count == 0) {
|
|
*eax &= env->features[FEAT_SGX_12_0_EAX];
|
|
*eax &= env->features[FEAT_SGX_12_0_EAX];
|