CPU/Recompiler: Make generated code invariant to virtual PC

This commit is contained in:
Connor McLaughlin
2020-08-08 15:15:56 +10:00
parent 8d4216068a
commit f6e88353eb
13 changed files with 258 additions and 213 deletions

View File

@ -119,9 +119,14 @@ void Execute()
#endif
if (s_use_recompiler)
{
g_state.current_instruction_pc = g_state.regs.pc;
block->host_code();
}
else
{
InterpretCachedBlock(*block);
}
if (g_state.pending_ticks >= g_state.downcount)
break;