X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2Fcarthw%2Fsvp%2Fssp16.c;h=ea0529f1f60c6f508854b3d4e6e4d1d8707e5515;hb=f48f5e3b461a33be0aef9499c553992d768a789f;hp=bd03563d05fcfdca2b4dadb9ff78e28a9beb265d;hpb=df143b366c256555ba4b458787f6cc2041e71d6c;p=picodrive.git diff --git a/Pico/carthw/svp/ssp16.c b/Pico/carthw/svp/ssp16.c index bd03563..ea0529f 100644 --- a/Pico/carthw/svp/ssp16.c +++ b/Pico/carthw/svp/ssp16.c @@ -332,7 +332,10 @@ } -static ssp1601_t *ssp = NULL; +#ifndef EMBED_INTERPRETER +static +#endif +ssp1601_t *ssp = NULL; static unsigned short *PC; static int g_cycles; @@ -447,9 +450,6 @@ static u32 pm_io(int reg, int write, u32 d) elprintf(EL_SVP, "ssp IRAM copy from %06x", (ssp->RAM1[0]-1)<<1); #ifdef USE_DEBUGGER last_iram = (ssp->RAM1[0]-1)<<1; -#endif -#ifdef EMBED_INTERPRETER - iram_dirty = 1; #endif } return 0; @@ -499,6 +499,9 @@ static u32 pm_io(int reg, int write, u32 d) elprintf(EL_SVP, "ssp IRAM w [%06x] %04x (inc %i)", (addr<<1)&0x7ff, d, inc); ((unsigned short *)svp->iram_rom)[addr&0x3ff] = d; ssp->pmac_write[reg] += inc; +#ifdef EMBED_INTERPRETER + iram_dirty = 1; +#endif } else { @@ -987,9 +990,6 @@ static void debug(unsigned int pc, unsigned int op) #endif // USE_DEBUGGER -#ifdef EMBED_INTERPRETER -static -#endif void ssp1601_reset(ssp1601_t *l_ssp) { ssp = l_ssp; @@ -1001,9 +1001,6 @@ void ssp1601_reset(ssp1601_t *l_ssp) } -#ifdef EMBED_INTERPRETER -static -#endif void ssp1601_run(int cycles) { #ifndef EMBED_INTERPRETER