]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Generate separate BSR for all CPU models. Fixes address error handling in non-prefetc...
authorToni Wilen <twilen@winuae.net>
Sun, 1 Mar 2020 11:16:46 +0000 (13:16 +0200)
committerToni Wilen <twilen@winuae.net>
Sun, 1 Mar 2020 11:16:46 +0000 (13:16 +0200)
gencpu.cpp

index 3ad010151cb52d209776534eef867be9f00d064f..d649ae911a379e346cf66e4211f9c3e41060b0f9 100644 (file)
@@ -7048,7 +7048,10 @@ static void gen_opcode (unsigned int opcode)
                        fill_prefetch_full(0);
                }
                branch_inst = 1;
-               next_level_000();
+               if (!next_level_040_to_030()) {
+                       if (!next_level_020_to_010())
+                               next_level_000();
+               }
                break;
        case i_Bcc:
                tail_ce020_done = true;
@@ -7414,7 +7417,7 @@ bccl_not68020:
                        curi->dmode, "dstreg", sz_long, "dst", 1, 0);
                push_ins_cnt();
                out("if (src == 0) {\n");
-               out("divbyzero_special (1, dst);\n");
+               out("divbyzero_special(1, dst);\n");
                incpc("%d", m68k_pc_offset);
                addcycles000(4);
                out("Exception_cpu(5);\n");