mirror of https://gitee.com/openkylin/qemu.git
x86/cpuid: fix indentation
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
8560efed6a
commit
2f7a21c4a5
|
@ -117,13 +117,13 @@ static void host_cpuid(uint32_t function, uint32_t count,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (eax)
|
if (eax)
|
||||||
*eax = vec[0];
|
*eax = vec[0];
|
||||||
if (ebx)
|
if (ebx)
|
||||||
*ebx = vec[1];
|
*ebx = vec[1];
|
||||||
if (ecx)
|
if (ecx)
|
||||||
*ecx = vec[2];
|
*ecx = vec[2];
|
||||||
if (edx)
|
if (edx)
|
||||||
*edx = vec[3];
|
*edx = vec[3];
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -617,7 +617,7 @@ static int cpu_x86_find_by_name(x86_def_t *x86_cpu_def, const char *cpu_model)
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
if (numvalue < 0x80000000) {
|
if (numvalue < 0x80000000) {
|
||||||
numvalue += 0x80000000;
|
numvalue += 0x80000000;
|
||||||
}
|
}
|
||||||
x86_cpu_def->xlevel = numvalue;
|
x86_cpu_def->xlevel = numvalue;
|
||||||
} else if (!strcmp(featurestr, "vendor")) {
|
} else if (!strcmp(featurestr, "vendor")) {
|
||||||
|
@ -1005,9 +1005,9 @@ void cpu_x86_cpuid(CPUX86State *env, uint32_t index, uint32_t count,
|
||||||
case 4:
|
case 4:
|
||||||
/* cache info: needed for Core compatibility */
|
/* cache info: needed for Core compatibility */
|
||||||
if (env->nr_cores > 1) {
|
if (env->nr_cores > 1) {
|
||||||
*eax = (env->nr_cores - 1) << 26;
|
*eax = (env->nr_cores - 1) << 26;
|
||||||
} else {
|
} else {
|
||||||
*eax = 0;
|
*eax = 0;
|
||||||
}
|
}
|
||||||
switch (count) {
|
switch (count) {
|
||||||
case 0: /* L1 dcache info */
|
case 0: /* L1 dcache info */
|
||||||
|
|
Loading…
Reference in New Issue