X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2Fcarthw%2Fsvp%2Fsvp.c;h=54cd401e841c3cbb7f133a6aaf23883344319a49;hb=34e243f167685f792c52d559e8dbf7c958e35daa;hp=f41bdea338456f6c68aa96589a8678f33f41713b;hpb=e477f8f74fb04f920d1d381df6c2d337c58f3ab1;p=picodrive.git diff --git a/Pico/carthw/svp/svp.c b/Pico/carthw/svp/svp.c index f41bdea..54cd401 100644 --- a/Pico/carthw/svp/svp.c +++ b/Pico/carthw/svp/svp.c @@ -26,7 +26,7 @@ static carthw_state_chunk svp_states[] = { { CHUNK_IRAM, 0x800, NULL }, { CHUNK_DRAM, sizeof(svp->dram), NULL }, - { CHUNK_SSP, sizeof(svp->ssp1601), NULL }, + { CHUNK_SSP, sizeof(svp->ssp1601) - sizeof(svp->ssp1601.drc), NULL }, { 0, 0, NULL } }; @@ -44,11 +44,6 @@ static void PicoSVPReset(void) static void PicoSVPLine(int count) { - static int inited = 0; - if (!(svp->ssp1601.gr[SSP_PM0].h & 2) && !inited) return; - inited = 1; - - // ??? if (PicoOpt&0x20000) ssp1601_run(PicoSVPCycles * count); else @@ -109,7 +104,6 @@ void PicoSVPStartup(void) elprintf(EL_SVP, "SVP init"); -PicoOpt |= 0x20000; tmp = realloc(Pico.rom, 0x200000 + sizeof(*svp)); if (tmp == NULL) { @@ -117,6 +111,7 @@ PicoOpt |= 0x20000; return; } + //PicoOpt |= 0x20000; Pico.rom = tmp; svp = (void *) ((char *)tmp + 0x200000); memset(svp, 0, sizeof(*svp));