summaryrefslogtreecommitdiffstats
path: root/linux-user
diff options
context:
space:
mode:
authorLaurent Vivier2018-10-30 17:55:54 +0100
committerLaurent Vivier2018-11-01 12:12:24 +0100
commitb9f8e55bf7e994e192ab7360830731580384b813 (patch)
treef11f0b9556bf80a7fe3132f5202ccab8bdf90855 /linux-user
parentMerge remote-tracking branch 'remotes/xtensa/tags/20181030-xtensa' into staging (diff)
downloadqemu-b9f8e55bf7e994e192ab7360830731580384b813.tar.gz
qemu-b9f8e55bf7e994e192ab7360830731580384b813.tar.xz
qemu-b9f8e55bf7e994e192ab7360830731580384b813.zip
target/m68k: use EXCP_ILLEGAL instead of EXCP_UNSUPPORTED
Coldfire defines an "Unsupported instruction" exception if execution of a valid instruction is attempted but the required hardware is not present in the processor. We use it with instructions that are in fact undefined or illegal, and the exception expected in this case by the kernel is the illegal exception, so this patch fixes that. Signed-off-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20181030165554.5761-1-laurent@vivier.eu>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/m68k/cpu_loop.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/linux-user/m68k/cpu_loop.c b/linux-user/m68k/cpu_loop.c
index b4d3d8af3d..30c3332af4 100644
--- a/linux-user/m68k/cpu_loop.c
+++ b/linux-user/m68k/cpu_loop.c
@@ -55,7 +55,6 @@ void cpu_loop(CPUM68KState *env)
break;
case EXCP_LINEA:
case EXCP_LINEF:
- case EXCP_UNSUPPORTED:
do_sigill:
info.si_signo = TARGET_SIGILL;
info.si_errno = 0;