Add toolbar button and Action menu item to toggle forcing the recompiler to interpret blocks, should help with some slowdowns (tested to help with Daggerfall on both recompilers and Legend of Hero III on new recompiler).

This commit is contained in:
OBattler
2025-12-05 14:18:17 +01:00
parent 7369cbc134
commit 3feb0f135d
31 changed files with 331 additions and 1 deletions

View File

@@ -51,6 +51,7 @@
#define CPU_BLOCK_END() cpu_block_end = 1
int cpu_force_interpreter = 0;
int cpu_override_dynarec = 0;
int inrecomp = 0;
int cpu_block_end = 0;
@@ -778,7 +779,7 @@ exec386_dynarec(int32_t cycs)
cycles_old = cycles;
oldtsc = tsc;
tsc_old = tsc;
if ((!CACHE_ON()) || cpu_override_dynarec) /*Interpret block*/
if (cpu_force_interpreter || cpu_override_dynarec || (!CACHE_ON())) /*Interpret block*/
{
exec386_dynarec_int();
} else {

View File

@@ -823,6 +823,8 @@ extern MMX_REG *MMP[8];
extern uint16_t *MMEP[8];
extern int cpu_block_end;
extern int cpu_force_interpreter;
extern int cpu_override_dynarec;
extern void mmx_init(void);

View File

@@ -373,6 +373,8 @@ reset_common(int hard)
in_lock = 0;
cpu_cpurst_on_sr = 0;
cpu_force_interpreter = 0;
}
/* Hard reset. */