mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12:00
PPU/Patches: Fix CALLOC patch with interpreter
This commit is contained in:
parent
8e75e940dd
commit
edf4f7eacc
1 changed files with 9 additions and 1 deletions
|
@ -3769,10 +3769,18 @@ bool ppu_initialize(const ppu_module& info, bool check_only)
|
||||||
{
|
{
|
||||||
for (auto& block : func.blocks)
|
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);
|
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_toc[func.addr] = func.toc;
|
||||||
ppu_ref(func.addr) = &ppu_check_toc;
|
ppu_ref(func.addr) = &ppu_check_toc;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue