]> git.proxmox.com Git - mirror_qemu.git/blobdiff - linux-user/uname.c
exec.c: add a check between constants to see whether we could skip
[mirror_qemu.git] / linux-user / uname.c
index 1c05f95387f41a83a584c695113b886b25f8399f..a09ffe1ea7bdb9d5413b3edeb7628284e81a8841 100644 (file)
@@ -54,7 +54,7 @@ const char *cpu_to_uname_machine(void *cpu_env)
     return "armv5te" utsname_suffix;
 #elif defined(TARGET_I386) && !defined(TARGET_X86_64)
     /* see arch/x86/kernel/cpu/bugs.c: check_bugs(), 386, 486, 586, 686 */
-    CPUState *cpu = ENV_GET_CPU((CPUX86State *)cpu_env);
+    CPUState *cpu = env_cpu((CPUX86State *)cpu_env);
     int family = object_property_get_int(OBJECT(cpu), "family", NULL);
     if (family == 4) {
         return "i486";