mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +00:00
PPU Analyzer: Report invalid functions
This commit is contained in:
parent
58701000cd
commit
b46408d554
@ -624,6 +624,14 @@ bool ppu_module<lv2_obj>::analyse(u32 lib_toc, u32 entry, const u32 sec_end, con
|
|||||||
// Register new function
|
// Register new function
|
||||||
auto add_func = [&](u32 addr, u32 toc, u32 caller) -> ppu_function_ext&
|
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];
|
ppu_function_ext& func = fmap[addr];
|
||||||
|
|
||||||
if (caller)
|
if (caller)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user