linux-user/arm: Do not emulate fpa11 in thumb mode
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 23 Apr 2021 16:54:11 +0000 (09:54 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Sat, 15 May 2021 19:38:45 +0000 (21:38 +0200)
These antiquated instructions are arm-mode only.

Buglink: https://bugs.launchpad.net/bugs/1925512
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20210423165413.338259-3-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/arm/cpu_loop.c

index 106909c7d8800f70dd115503d432b7bf8a569b2a..e2a1496b9fe73b9811b7b0d710cd242fe3d9856b 100644 (file)
@@ -347,7 +347,7 @@ void cpu_loop(CPUARMState *env)
                     goto excp_debug;
                 }
 
-                if (emulate_arm_fpa11(env, opcode)) {
+                if (!env->thumb && emulate_arm_fpa11(env, opcode)) {
                     break;
                 }