polling detection: communication poll fifo to avoid comm data loss

This commit is contained in:
kub 2019-05-22 21:38:59 +02:00
parent 0495df5d0c
commit e43998086c
5 changed files with 214 additions and 97 deletions

View file

@ -471,7 +471,7 @@ void sync_sh2s_normal(unsigned int m68k_target)
if (!(ssh2.state & SH2_IDLE_STATES)) {
cycles = target - ssh2.m68krcycles_done;
if (cycles > 0) {
run_sh2(&ssh2, cycles);
run_sh2(&ssh2, cycles > 20 ? cycles : 20);
if (event_time_next && CYCLES_GT(target, event_time_next))
target = event_time_next;
@ -483,7 +483,7 @@ void sync_sh2s_normal(unsigned int m68k_target)
if (!(msh2.state & SH2_IDLE_STATES)) {
cycles = target - msh2.m68krcycles_done;
if (cycles > 0) {
run_sh2(&msh2, cycles);
run_sh2(&msh2, cycles > 20 ? cycles : 20);
if (event_time_next && CYCLES_GT(target, event_time_next))
target = event_time_next;