mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-12-28 00:18:23 +00:00
PPU: Fixup interpreter and analyzer
This commit is contained in:
parent
edf4f7eacc
commit
cdc0441405
@ -1463,7 +1463,7 @@ bool ppu_module::analyse(u32 lib_toc, u32 entry, const u32 sec_end, const std::b
|
||||
{
|
||||
const u32 target = (op.aa ? 0 : iaddr) + (type == ppu_itype::B ? +op.bt24 : +op.bt14);
|
||||
|
||||
if (target >= start && target < end && (op.aa && verify_func(iaddr)))
|
||||
if (target >= start && target < end && (!op.aa || verify_func(iaddr)))
|
||||
{
|
||||
if (target < func.addr || target >= func.addr + func.size)
|
||||
{
|
||||
|
@ -3769,9 +3769,7 @@ 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())
|
||||
if (g_fxo->is_init<ppu_far_jumps_t>() && !g_fxo->get<ppu_far_jumps_t>().get_targets(block.first, block.second).empty())
|
||||
{
|
||||
// Replace the block with ppu_far_jump
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user