]> git.proxmox.com Git - qemu.git/commitdiff
Add diagnostic for bad opcode masks.
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 28 May 2007 01:46:43 +0000 (01:46 +0000)
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 28 May 2007 01:46:43 +0000 (01:46 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2882 c046a42c-6fe2-441c-8c8c-71466251a162

target-m68k/translate.c

index 10b733fa0a4d414750c1a357c149a9539e75af59..52f38e4c0c3671248ef65c146563c3c32f281cbf 100644 (file)
@@ -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.  */