X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fcarthw%2Fsvp%2Fcompiler.c;h=cda7df0f6cb641d80b1d8faa474150006980e186;hb=f4bb5d6b2c96a94317c4edb7805eb6d6ed8589ef;hp=da25ea96b9e8ac071ce89d5bbc3345fe45ed1edf;hpb=2b2b46b05d5fbabb59c1392fbfdf8c715ef02a83;p=picodrive.git diff --git a/pico/carthw/svp/compiler.c b/pico/carthw/svp/compiler.c index da25ea9..cda7df0 100644 --- a/pico/carthw/svp/compiler.c +++ b/pico/carthw/svp/compiler.c @@ -1766,7 +1766,7 @@ void *ssp_translate_block(int pc) tr_flush_dirty_pmcrs(); emit_block_epilogue(ccount, end_cond, jump_pc, pc); - if (tcache_ptr - tcache > DRC_TCACHE_SIZE/4) { + if (tcache_ptr - (u32 *)tcache > DRC_TCACHE_SIZE/4) { elprintf(EL_ANOMALY|EL_STATUS|EL_SVP, "tcache overflow!\n"); fflush(stdout); exit(1); @@ -1825,7 +1825,7 @@ int ssp1601_dyn_startup(void) } memset(tcache, 0, DRC_TCACHE_SIZE); - tcache_ptr = tcache; + tcache_ptr = (void *)tcache; PicoLoadStateHook = ssp1601_state_load;