mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
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>
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user