X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2F32x%2F32x.c;fp=pico%2F32x%2F32x.c;h=a6f0a514f00e4c8c6f4c7f9789c5784e8c43df1a;hb=045a4c528a71e5513acc2cfb8a77e31efcad5d87;hp=7a4d7b33fbc117d3cf800ffa27fb833b5277404b;hpb=df63f1a6ff674808e641b67e3e60027b1e05c781;p=picodrive.git diff --git a/pico/32x/32x.c b/pico/32x/32x.c index 7a4d7b3..a6f0a51 100644 --- a/pico/32x/32x.c +++ b/pico/32x/32x.c @@ -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; }