mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
Merge pull request #5437 from sepalani/ppc-ibat
PPCAnalyst: Use the proper RAM check
This commit is contained in:
commit
8be41d3b7c
@ -97,7 +97,7 @@ bool AnalyzeFunction(u32 startAddr, Symbol& func, int max_size)
|
|||||||
for (u32 addr = startAddr; true; addr += 4)
|
for (u32 addr = startAddr; true; addr += 4)
|
||||||
{
|
{
|
||||||
func.size += 4;
|
func.size += 4;
|
||||||
if (func.size >= CODEBUFFER_SIZE * 4 || !PowerPC::HostIsRAMAddress(addr)) // weird
|
if (func.size >= CODEBUFFER_SIZE * 4 || !PowerPC::HostIsInstructionRAMAddress(addr)) // weird
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (max_size && func.size > max_size)
|
if (max_size && func.size > max_size)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user