1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2025-01-31 20:41:45 +01:00

PPU Analyzer: Report invalid functions

This commit is contained in:
Elad 2025-01-18 18:51:53 +02:00
parent 58701000cd
commit b46408d554

View File

@ -624,6 +624,14 @@ bool ppu_module<lv2_obj>::analyse(u32 lib_toc, u32 entry, const u32 sec_end, con
// Register new function
auto add_func = [&](u32 addr, u32 toc, u32 caller) -> ppu_function_ext&
{
if (addr < start || addr >= end || s_ppu_itype.decode(*get_ptr<u32>(addr)) == ppu_itype::UNK)
{
if (!fmap.contains(addr))
{
ppu_log.error("Potentially invalid function has been added: 0x%x", addr);
}
}
ppu_function_ext& func = fmap[addr];
if (caller)