CPU/Recompiler: Use PGXP interpreter for fallback
Fixes holes in geometry with PGXP enabled in Threads of Fate.
This commit is contained in:
@ -1856,6 +1856,7 @@ template void InterpretCachedBlock<PGXPMode::Disabled>(const CodeBlock& block);
|
||||
template void InterpretCachedBlock<PGXPMode::Memory>(const CodeBlock& block);
|
||||
template void InterpretCachedBlock<PGXPMode::CPU>(const CodeBlock& block);
|
||||
|
||||
template<PGXPMode pgxp_mode>
|
||||
void InterpretUncachedBlock()
|
||||
{
|
||||
g_state.regs.npc = g_state.regs.pc;
|
||||
@ -1890,7 +1891,7 @@ void InterpretUncachedBlock()
|
||||
}
|
||||
|
||||
// execute the instruction we previously fetched
|
||||
ExecuteInstruction<PGXPMode::Disabled>();
|
||||
ExecuteInstruction<pgxp_mode>();
|
||||
|
||||
// next load delay
|
||||
UpdateLoadDelay();
|
||||
@ -1905,6 +1906,10 @@ void InterpretUncachedBlock()
|
||||
}
|
||||
}
|
||||
|
||||
template void InterpretUncachedBlock<PGXPMode::Disabled>();
|
||||
template void InterpretUncachedBlock<PGXPMode::Memory>();
|
||||
template void InterpretUncachedBlock<PGXPMode::CPU>();
|
||||
|
||||
} // namespace CodeCache
|
||||
|
||||
namespace Recompiler::Thunks {
|
||||
|
||||
Reference in New Issue
Block a user