]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix hang if CPU got in loop that was fully in cache without memory accesses.
authorToni Wilen <twilen@winuae.net>
Sun, 19 Aug 2018 15:58:25 +0000 (18:58 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 19 Aug 2018 15:58:25 +0000 (18:58 +0300)
newcpu.cpp

index 42faa1b5f382a7b0ef6a5cabb0733b0d555b03b0..3066344ce2b65bf096b30f218eec6d5f2af445da 100644 (file)
@@ -6245,8 +6245,8 @@ static void m68k_run_2p (void)
                                        cpu_cycles = 4 * CYCLE_UNIT * cycles_mult;
                                        cpu_cycles /= CYCLES_DIV;
                                        cpu_cycles -= CYCLE_UNIT;
-                                       if (cpu_cycles < 0)
-                                               cpu_cycles = 0;
+                                       if (cpu_cycles <= 0)
+                                               cpu_cycles = cpucycleunit;
 
                                } else {