mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12:00
SPU Analyzer: Filter calls to calls
This commit is contained in:
parent
c7d93bd470
commit
b18a97e777
1 changed files with 6 additions and 0 deletions
|
@ -2314,6 +2314,12 @@ std::vector<u32> spu_thread::discover_functions(u32 base_addr, std::span<const u
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (std::count(calls.begin(), calls.end(), func))
|
||||||
|
{
|
||||||
|
// Cannot call another call instruction (link is overwritten)
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
addrs.push_back(func);
|
addrs.push_back(func);
|
||||||
|
|
||||||
// Detect an "arguments passing" block, possible queue another function
|
// Detect an "arguments passing" block, possible queue another function
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue