[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 04/17] linux-user/m68k: Handle EXCP_TRAP1 through EXCP_TRAP15
From: |
Richard Henderson |
Subject: |
[PATCH v6 04/17] linux-user/m68k: Handle EXCP_TRAP1 through EXCP_TRAP15 |
Date: |
Wed, 1 Jun 2022 18:33:48 -0700 |
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>
---
linux-user/m68k/cpu_loop.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/linux-user/m68k/cpu_loop.c b/linux-user/m68k/cpu_loop.c
index 56417f7401..12e5d9cd53 100644
--- a/linux-user/m68k/cpu_loop.c
+++ b/linux-user/m68k/cpu_loop.c
@@ -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:
--
2.34.1
- [PATCH v6 00/17] target/m68k: Conditional traps + trap cleanup, Richard Henderson, 2022/06/01
- [PATCH v6 01/17] target/m68k: Raise the TRAPn exception with the correct pc, Richard Henderson, 2022/06/01
- [PATCH v6 04/17] linux-user/m68k: Handle EXCP_TRAP1 through EXCP_TRAP15,
Richard Henderson <=
- [PATCH v6 03/17] target/m68k: Fix coding style in m68k_interrupt_all, Richard Henderson, 2022/06/01
- [PATCH v6 05/17] target/m68k: Remove retaddr in m68k_interrupt_all, Richard Henderson, 2022/06/01
- [PATCH v6 02/17] target/m68k: Switch over exception type in m68k_interrupt_all, Richard Henderson, 2022/06/01
- [PATCH v6 07/17] target/m68k: Fix pc, c flag, and address argument for EXCP_DIV0, Richard Henderson, 2022/06/01
- [PATCH v6 08/17] target/m68k: Fix address argument for EXCP_TRACE, Richard Henderson, 2022/06/01
- [PATCH v6 06/17] target/m68k: Fix address argument for EXCP_CHK, Richard Henderson, 2022/06/01
- [PATCH v6 09/17] target/m68k: Fix stack frame for EXCP_ILLEGAL, Richard Henderson, 2022/06/01
- [PATCH v6 10/17] target/m68k: Implement TRAPcc, Richard Henderson, 2022/06/01
- [PATCH v6 12/17] target/m68k: Implement TRAPV, Richard Henderson, 2022/06/01
- [PATCH v6 13/17] target/m68k: Implement FTRAPcc, Richard Henderson, 2022/06/01