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/user-internals.h | |
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/user-internals.h')
-rw-r--r-- | linux-user/user-internals.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/user-internals.h b/linux-user/user-internals.h index 0bb26331c1..6175ce53db 100644 --- a/linux-user/user-internals.h +++ b/linux-user/user-internals.h @@ -134,7 +134,7 @@ void print_termios(void *arg); #ifdef TARGET_ARM static inline int regpairs_aligned(CPUArchState *cpu_env, int num) { - return ((((CPUARMState *)cpu_env)->eabi) == 1) ; + return cpu_env->eabi == 1; } #elif defined(TARGET_MIPS) && defined(TARGET_ABI_MIPSO32) static inline int regpairs_aligned(CPUArchState *cpu_env, int num) { return 1; } |