diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2022-05-09 22:57:28 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2022-05-23 22:47:20 +0200 |
commit | 0effdc29b53240b1b2f25e48a61a287558e8ad6f (patch) | |
tree | 992607b5057212b3da3dbfe4db7c103aa3d2fbc7 /linux-user/uname.c | |
parent | a0939b89161a756a7f58cab2bec0a2410c5d0b5f (diff) |
linux-user: Remove pointless CPU{ARCH}State casts
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220509205728.51912-4-philippe.mathieu.daude@gmail.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/uname.c')
-rw-r--r-- | linux-user/uname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/uname.c b/linux-user/uname.c index 1e3e98156d..32f71f2492 100644 --- a/linux-user/uname.c +++ b/linux-user/uname.c @@ -54,7 +54,7 @@ const char *cpu_to_uname_machine(CPUArchState *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_cpu((CPUX86State *)cpu_env); + CPUState *cpu = env_cpu(cpu_env); int family = object_property_get_int(OBJECT(cpu), "family", NULL); if (family == 4) { return "i486"; |