X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Fsh2%2Fcompiler.c;h=2dd3430c153b44d776cefa9bbdabfeb5ee95cea0;hb=5a13b150c5886f41f6c58db66a20f264249e120e;hp=76df22041e5287a8b96b80152072f80c4c31affd;hpb=895d15121be3762c7007a3afe24c5d78bbdc8be7;p=picodrive.git diff --git a/cpu/sh2/compiler.c b/cpu/sh2/compiler.c index 76df220..2dd3430 100644 --- a/cpu/sh2/compiler.c +++ b/cpu/sh2/compiler.c @@ -1017,7 +1017,7 @@ static void rcache_unlock_all(void) reg_temp[i].flags &= ~HRF_LOCKED; } -static inline u32 rcache_used_hreg_mask(void) +static INLINE u32 rcache_used_hreg_mask(void) { u32 mask = 0; int i; @@ -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)