]> git.proxmox.com Git - mirror_qemu.git/commitdiff
bsd-user/arm/target_arch_cpu.h: Move EXCP_ATOMIC to match linux-user
authorWarner Losh <imp@bsdimp.com>
Sat, 8 Jan 2022 22:41:10 +0000 (15:41 -0700)
committerWarner Losh <imp@bsdimp.com>
Fri, 28 Jan 2022 22:52:38 +0000 (15:52 -0700)
Move the EXCP_ATOMIC case to match linux-user/arm/cpu_loop.c:cpu_loop
ordering.

Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
bsd-user/arm/target_arch_cpu.h

index c675419c30aa401fbbfc7115dc4ed5416cd75cf1..c526fc73502ed35a26f678f2b48f4ea1bd00cdf7 100644 (file)
@@ -180,12 +180,12 @@ static inline void target_cpu_loop(CPUARMState *env)
                 queue_signal(env, info.si_signo, &info);
             }
             break;
-        case EXCP_ATOMIC:
-            cpu_exec_step_atomic(cs);
-            break;
         case EXCP_YIELD:
             /* nothing to do here for user-mode, just resume guest code */
             break;
+        case EXCP_ATOMIC:
+            cpu_exec_step_atomic(cs);
+            break;
         default:
             fprintf(stderr, "qemu: unhandled CPU exception 0x%x - aborting\n",
                     trapnr);