From: notaz Date: Thu, 17 Feb 2011 00:18:15 +0000 (+0200) Subject: drc: add i/o penalty cycles X-Git-Tag: r7~18 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb4074479c536e12f7668aa5dfff48b146562d57;p=pcsx_rearmed.git drc: add i/o penalty cycles .. as done by some other PSX emus --- diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c index 14350172..1f33c756 100644 --- a/libpcsxcore/new_dynarec/new_dynarec.c +++ b/libpcsxcore/new_dynarec/new_dynarec.c @@ -9478,6 +9478,16 @@ int new_recompile_block(int addr) { cc=0; } +#ifdef PCSX + else if(/*itype[i]==LOAD||*/itype[i]==STORE||itype[i]==C1LS) // load causes weird timing issues + { + cc+=2; // 2 cycle penalty (after CLOCK_DIVIDER) + } + else if(itype[i]==C2LS) + { + cc+=4; + } +#endif else { cc++;