1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

PPU/Patches: Fix CALLOC patch with interpreter

This commit is contained in:
Eladash 2023-08-07 18:33:47 +03:00 committed by Elad Ashkenazi
parent 8e75e940dd
commit edf4f7eacc

View File

@ -3769,10 +3769,18 @@ bool ppu_initialize(const ppu_module& info, bool check_only)
{
for (auto& block : func.blocks)
{
const auto targets = g_fxo->get<ppu_far_jumps_t>().get_targets(block.first, block.second);
if (!targets.empty())
{
// Replace the block with ppu_far_jump
continue;
}
ppu_register_function_at(block.first, block.second);
}
if (g_cfg.core.ppu_debug && func.size && func.toc != umax)
if (g_cfg.core.ppu_debug && func.size && func.toc != umax && !ppu_get_far_jump(func.addr))
{
ppu_toc[func.addr] = func.toc;
ppu_ref(func.addr) = &ppu_check_toc;