]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
target/arm: Convert CPUARMState::eabi to boolean
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 6 Feb 2023 22:34:56 +0000 (23:34 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 16 Feb 2023 16:00:47 +0000 (16:00 +0000)
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20230206223502.25122-6-philmd@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
linux-user/arm/cpu_loop.c
linux-user/user-internals.h
target/arm/cpu.h

index c0790f3246b91be85b33a036b5d1d054e5302e41..a9924232578ef2cd2b60da7c8de0d2385cb8a101 100644 (file)
@@ -356,7 +356,7 @@ void cpu_loop(CPUARMState *env)
             break;
         case EXCP_SWI:
             {
-                env->eabi = 1;
+                env->eabi = true;
                 /* system call */
                 if (env->thumb) {
                     /* Thumb is always EABI style with syscall number in r7 */
@@ -382,7 +382,7 @@ void cpu_loop(CPUARMState *env)
                          * > 0xfffff and are handled below as out-of-range.
                          */
                         n ^= ARM_SYSCALL_BASE;
-                        env->eabi = 0;
+                        env->eabi = false;
                     }
                 }
 
index 0280e76addda504ea9745a17324ba9d6923335bc..3576da413f407df68bf67dbe74e25a410d9c333a 100644 (file)
@@ -135,7 +135,7 @@ void print_termios(void *arg);
 #ifdef TARGET_ARM
 static inline int regpairs_aligned(CPUArchState *cpu_env, int num)
 {
-    return cpu_env->eabi == 1;
+    return cpu_env->eabi;
 }
 #elif defined(TARGET_MIPS) && defined(TARGET_ABI_MIPSO32)
 static inline int regpairs_aligned(CPUArchState *cpu_env, int num) { return 1; }
index 7bc97fece973ab3749e42b378b18feee75efd3a9..05b9012cee9116fc72dbb59101f11d1966dcf935 100644 (file)
@@ -723,7 +723,7 @@ typedef struct CPUArchState {
 
 #if defined(CONFIG_USER_ONLY)
     /* For usermode syscall translation.  */
-    int eabi;
+    bool eabi;
 #endif
 
     struct CPUBreakpoint *cpu_breakpoint[16];