]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
linux-user/m68k: Handle EXCP_TRAP1 through EXCP_TRAP15
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 2 Jun 2022 01:33:48 +0000 (18:33 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 2 Jun 2022 07:35:02 +0000 (09:35 +0200)
These are raised by guest instructions, and should not
fall through into the default abort case.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220602013401.303699-5-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/m68k/cpu_loop.c

index 56417f7401ddad1c679ee02af3447b844e342ee3..12e5d9cd536334799becdd24a3ee9c709619186d 100644 (file)
@@ -75,7 +75,11 @@ void cpu_loop(CPUM68KState *env)
         case EXCP_INTERRUPT:
             /* just indicate that signals should be handled asap */
             break;
+        case EXCP_TRAP0 + 1 ... EXCP_TRAP0 + 14:
+            force_sig_fault(TARGET_SIGILL, TARGET_ILL_ILLTRP, env->pc);
+            break;
         case EXCP_DEBUG:
+        case EXCP_TRAP15:
             force_sig_fault(TARGET_SIGTRAP, TARGET_TRAP_BRKPT, env->pc);
             break;
         case EXCP_ATOMIC: