uname.c (5f022626c8807e5848af223908d533973a4b2922) uname.c (29a0af618ddd21f55df5753c3e16b0625f534b3c)
1/*
2 * cpu to uname machine name map
3 *
4 * Copyright (c) 2009 Loïc Minier
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 40 unchanged lines hidden (view full) ---

49 return "armv7" utsname_suffix;
50 if (arm_feature(cpu_env, ARM_FEATURE_V6))
51 return "armv6" utsname_suffix;
52 /* earliest emulated CPU is ARMv5TE; qemu can emulate the 1026, but not its
53 * Jazelle support */
54 return "armv5te" utsname_suffix;
55#elif defined(TARGET_I386) && !defined(TARGET_X86_64)
56 /* see arch/x86/kernel/cpu/bugs.c: check_bugs(), 386, 486, 586, 686 */
1/*
2 * cpu to uname machine name map
3 *
4 * Copyright (c) 2009 Loïc Minier
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 40 unchanged lines hidden (view full) ---

49 return "armv7" utsname_suffix;
50 if (arm_feature(cpu_env, ARM_FEATURE_V6))
51 return "armv6" utsname_suffix;
52 /* earliest emulated CPU is ARMv5TE; qemu can emulate the 1026, but not its
53 * Jazelle support */
54 return "armv5te" utsname_suffix;
55#elif defined(TARGET_I386) && !defined(TARGET_X86_64)
56 /* see arch/x86/kernel/cpu/bugs.c: check_bugs(), 386, 486, 586, 686 */
57 CPUState *cpu = ENV_GET_CPU((CPUX86State *)cpu_env);
57 CPUState *cpu = env_cpu((CPUX86State *)cpu_env);
58 int family = object_property_get_int(OBJECT(cpu), "family", NULL);
59 if (family == 4) {
60 return "i486";
61 }
62 if (family == 5) {
63 return "i586";
64 }
65 return "i686";

--- 103 unchanged lines hidden ---
58 int family = object_property_get_int(OBJECT(cpu), "family", NULL);
59 if (family == 4) {
60 return "i486";
61 }
62 if (family == 5) {
63 return "i586";
64 }
65 return "i686";

--- 103 unchanged lines hidden ---