diff options
Diffstat (limited to 'target-m68k')
-rw-r--r-- | target-m68k/translate.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/target-m68k/translate.c b/target-m68k/translate.c index 10b733fa0a..52f38e4c0c 100644 --- a/target-m68k/translate.c +++ b/target-m68k/translate.c @@ -2440,8 +2440,12 @@ register_opcode (disas_proc proc, uint16_t opcode, uint16_t mask) int to; /* Sanity check. All set bits must be included in the mask. */ - if (opcode & ~mask) + if (opcode & ~mask) { + fprintf(stderr, + "qemu internal error: bogus opcode definition %04x/%04x\n", + opcode, mask); abort(); + } /* This could probably be cleverer. For now just optimize the case where the top bits are known. */ /* Find the first zero bit in the mask. */ |