32x: move sh2 peripheral emu code to it's own file

also adds 16byte dma
This commit is contained in:
notaz 2013-08-05 02:31:47 +03:00
parent df63f1a6ff
commit 045a4c528a
6 changed files with 460 additions and 399 deletions

View file

@ -74,6 +74,7 @@ void Pico32xStartup(void)
ssh2.irq_callback = sh2_irq_cb;
PicoMemSetup32x();
p32x_pwm_ctl_changed();
p32x_timers_recalc();
if (!Pico.m.pal)
@ -172,6 +173,7 @@ void PicoReset32x(void)
p32x_update_irls(NULL);
p32x_sh2_poll_event(&msh2, SH2_IDLE_STATES, 0);
p32x_sh2_poll_event(&ssh2, SH2_IDLE_STATES, 0);
p32x_pwm_ctl_changed();
p32x_timers_recalc();
}
}
@ -433,7 +435,7 @@ void sync_sh2s_normal(unsigned int m68k_target)
}
}
p32x_timers_do(now, now - timer_cycles);
p32x_timers_do(now - timer_cycles);
timer_cycles = now;
}