From: notaz Date: Tue, 12 Sep 2017 22:46:30 +0000 (+0300) Subject: musashi: don't generate unneeded handlers X-Git-Tag: v1.92~45 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a39743e3153322ec0e18bb0d05cd16af1d9a6d79;p=picodrive.git musashi: don't generate unneeded handlers at least move16 was incorrectly hooked up --- diff --git a/cpu/musashi/m68kmake.c b/cpu/musashi/m68kmake.c index f3157340..361481b9 100644 --- a/cpu/musashi/m68kmake.c +++ b/cpu/musashi/m68kmake.c @@ -1043,6 +1043,11 @@ void process_opcode_handlers(FILE* filep) if(opinfo == NULL) error_exit("Unable to find matching table entry for %s", func_name); +#if 1 /* PD hack: 000 only */ + if (opinfo->cpus[0] == UNSPECIFIED_CH) + continue; +#endif + replace->length = 0; /* Generate opcode variants */ diff --git a/pico/sek.c b/pico/sek.c index 86a351f6..4525c7c9 100644 --- a/pico/sek.c +++ b/pico/sek.c @@ -549,6 +549,7 @@ breakloop: printf("D%d: %08x A%d: %08x\n", i, x68k->dar[i], i, x68k->dar[i + 8]); printf("PC: %08x, %08x\n", x68k->pc, x68k->pc_prev); + printf("SR: %04x\n", x68k->sr); PDebugDumpMem(); exit(1);