target-m68k: add bkpt instruction

Backports commit 71600eda7cc48f03ea306bc69ed7e52ef1d9dd91 from qemu
This commit is contained in:
Laurent Vivier 2018-02-28 00:29:33 -05:00 committed by Lioncash
parent 22be035e60
commit 59d6a1a744
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -1664,6 +1664,11 @@ DISAS_INSN(swap)
gen_logic_cc(s, reg, OS_LONG);
}
DISAS_INSN(bkpt)
{
gen_exception(s, s->pc - 2, EXCP_DEBUG);
}
DISAS_INSN(pea)
{
TCGContext *tcg_ctx = s->uc->tcg_ctx;
@ -3133,6 +3138,7 @@ void register_m68k_insns (CPUM68KState *env)
INSN(move_to_sr, 46c0, ffc0, CF_ISA_A);
BASE(pea, 4840, ffc0);
BASE(swap, 4840, fff8);
INSN(bkpt, 4848, fff8, BKPT);
BASE(movem, 48c0, fbc0);
BASE(ext, 4880, fff8);
BASE(ext, 48c0, fff8);