Skip to content

Commit

Permalink
PPU/Patches: Fix CALLOC patch with interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
elad335 committed Aug 7, 2023
1 parent 8e75e94 commit edf4f7e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion rpcs3/Emu/Cell/PPUThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit edf4f7e

Please sign in to comment.