Message ID | 20230201095402.1002350-2-laurent@vivier.eu (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [PULL,1/1] m68k: fix 'bkpt' instruction in softmmu mode | expand |
diff --git a/target/m68k/translate.c b/target/m68k/translate.c index 18418312b14b..31178c3b1d17 100644 --- a/target/m68k/translate.c +++ b/target/m68k/translate.c @@ -2774,7 +2774,11 @@ DISAS_INSN(swap) DISAS_INSN(bkpt) { +#if defined(CONFIG_SOFTMMU) + gen_exception(s, s->base.pc_next, EXCP_ILLEGAL); +#else gen_exception(s, s->base.pc_next, EXCP_DEBUG); +#endif } DISAS_INSN(pea)