mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
polling detection: communication poll fifo to avoid comm data loss
This commit is contained in:
parent
0495df5d0c
commit
e43998086c
5 changed files with 214 additions and 97 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue