X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Fsh2%2Fcompiler.c;h=25ba9d2f90a044c33f2969de410125bfbb8a332c;hb=ae7830aae15ce83a9256fb3f893efef00e53a105;hp=76df22041e5287a8b96b80152072f80c4c31affd;hpb=895d15121be3762c7007a3afe24c5d78bbdc8be7;p=picodrive.git diff --git a/cpu/sh2/compiler.c b/cpu/sh2/compiler.c index 76df220..25ba9d2 100644 --- a/cpu/sh2/compiler.c +++ b/cpu/sh2/compiler.c @@ -3111,12 +3111,10 @@ void sh2_drc_wcheck_da(unsigned int a, int val, int cpuid) 1 + cpuid, SH2_DRCBLK_DA_SHIFT, 0xfff); } -int sh2_execute(SH2 *sh2c, int cycles) +int sh2_execute_drc(SH2 *sh2c, int cycles) { int ret_cycles; - sh2c->cycles_timeslice = cycles; - // cycles are kept in SHR_SR unused bits (upper 20) // bit11 contains T saved for delay slot // others are usual SH2 flags @@ -3130,7 +3128,7 @@ int sh2_execute(SH2 *sh2c, int cycles) dbg(1, "warning: drc returned with cycles: %d", ret_cycles); sh2c->sr &= 0x3f3; - return sh2c->cycles_timeslice - ret_cycles; + return ret_cycles; } #if (DRC_DEBUG & 2)