mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
allow to disable SH2 dynarec on runtime
This commit is contained in:
parent
835122bc0c
commit
0185b67736
9 changed files with 80 additions and 24 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue