X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2F32x%2F32x.c;h=ba89d9825b22f1d57b401fc542bad41144915deb;hb=efd100fc0a1426202abd2dd2cb1e3ed18bf4440d;hp=c75e3fe1512ac49a0373f01aabc456e49d424b91;hpb=83ff19ec52ff47992b5d6ceda3900b914eda2123;p=picodrive.git diff --git a/pico/32x/32x.c b/pico/32x/32x.c index c75e3fe..ba89d98 100644 --- a/pico/32x/32x.c +++ b/pico/32x/32x.c @@ -38,6 +38,7 @@ void Pico32xStartup(void) { elprintf(EL_STATUS|EL_32X, "32X startup"); + // TODO: OOM handling PicoAHW |= PAHW_32X; sh2_init(&msh2, 0); msh2.irq_callback = sh2_irq_cb; @@ -121,6 +122,8 @@ void PicoUnload32x(void) if (Pico32xMem != NULL) free(Pico32xMem); Pico32xMem = NULL; + sh2_finish(&msh2); + sh2_finish(&ssh2); PicoAHW &= ~PAHW_32X; }