diff --git a/qemu/target/m68k/helper.c b/qemu/target/m68k/helper.c index 436dfff9..f061cfa7 100644 --- a/qemu/target/m68k/helper.c +++ b/qemu/target/m68k/helper.c @@ -47,9 +47,9 @@ void HELPER(cf_movec_to)(CPUM68KState *env, uint32_t reg, uint32_t val) break; /* TODO: Implement control registers. */ default: - cpu_abort(CPU(cpu), - "Unimplemented control register write 0x%x = 0x%x\n", - reg, val); + qemu_log("Unimplemented control register write 0x%x = 0x%x\n", + reg, val); + raise_exception(env, EXCP_UNSUPPORTED); } } diff --git a/qemu/target/m68k/translate.c b/qemu/target/m68k/translate.c index e595400f..912f3b88 100644 --- a/qemu/target/m68k/translate.c +++ b/qemu/target/m68k/translate.c @@ -4976,7 +4976,8 @@ DISAS_INSN(wdebug) return; } /* TODO: Implement wdebug. */ - cpu_abort(CPU(cpu), "WDEBUG not implemented"); + qemu_log("WDEBUG not implemented\n"); + gen_exception(s, s->pc - 2, EXCP_UNSUPPORTED); } #endif