musashi: don't generate unneeded handlers
authornotaz <notasas@gmail.com>
Tue, 12 Sep 2017 22:46:30 +0000 (01:46 +0300)
committernotaz <notasas@gmail.com>
Wed, 20 Sep 2017 20:47:09 +0000 (23:47 +0300)
at least move16 was incorrectly hooked up

cpu/musashi/m68kmake.c
pico/sek.c

index f315734..361481b 100644 (file)
@@ -1043,6 +1043,11 @@ void process_opcode_handlers(FILE* filep)
                if(opinfo == NULL)\r
                        error_exit("Unable to find matching table entry for %s", func_name);\r
 \r
+#if 1 /* PD hack: 000 only */\r
+               if (opinfo->cpus[0] == UNSPECIFIED_CH)\r
+                       continue;\r
+#endif\r
+\r
                replace->length = 0;\r
 \r
                /* Generate opcode variants */\r
index 86a351f..4525c7c 100644 (file)
@@ -549,6 +549,7 @@ breakloop:
                        printf("D%d: %08x  A%d: %08x\n", i, x68k->dar[i],\r
         i, x68k->dar[i + 8]);\r
                printf("PC: %08x, %08x\n", x68k->pc, x68k->pc_prev);\r
+               printf("SR: %04x\n", x68k->sr);\r
 \r
     PDebugDumpMem();\r
     exit(1);\r