]> git.proxmox.com Git - mirror_qemu.git/commit
target/m68k: use EXCP_ILLEGAL instead of EXCP_UNSUPPORTED
authorLaurent Vivier <laurent@vivier.eu>
Tue, 30 Oct 2018 16:55:54 +0000 (17:55 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 1 Nov 2018 11:12:24 +0000 (12:12 +0100)
commitb9f8e55bf7e994e192ab7360830731580384b813
treef11f0b9556bf80a7fe3132f5202ccab8bdf90855
parent7d51a855cd568ec3399a1834ada4023cfa12f231
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>
linux-user/m68k/cpu_loop.c
target/m68k/cpu.h
target/m68k/translate.c