sh2 drc+interpreter, minor improvement for cycle counting

This commit is contained in:
kub 2021-05-19 19:14:00 +02:00
parent e867ec06e1
commit fa0d0d224e
2 changed files with 8 additions and 7 deletions

View file

@ -221,7 +221,7 @@ int sh2_execute_interpreter(SH2 *sh2, int cycles)
|| pc_expect != sh2->pc) // branched
{
pc_expect = sh2->pc;
if (sh2->icount < 0)
if (sh2->icount <= 0)
break;
}