mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-26 20:03:54 -06:00
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>
This commit is contained in:
parent
a0939b8916
commit
0effdc29b5
3 changed files with 25 additions and 28 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue