From fb4074479c536e12f7668aa5dfff48b146562d57 Mon Sep 17 00:00:00 2001 From: notaz Date: Thu, 17 Feb 2011 02:18:15 +0200 Subject: [PATCH] drc: add i/o penalty cycles .. as done by some other PSX emus --- libpcsxcore/new_dynarec/new_dynarec.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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++; -- 2.39.5