mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-27 06:35:39 +00:00
PPCAnalyst: Fix off by one instruction
This commit is contained in:
parent
93ba6aa9f2
commit
40c243df28
@ -104,7 +104,8 @@ bool AnalyzeFunction(u32 startAddr, Symbol& func, int max_size)
|
||||
{
|
||||
func.address = startAddr;
|
||||
func.analyzed = true;
|
||||
func.hash = HashSignatureDB::ComputeCodeChecksum(startAddr, addr);
|
||||
func.size -= 4;
|
||||
func.hash = HashSignatureDB::ComputeCodeChecksum(startAddr, addr - 4);
|
||||
if (numInternalBranches == 0)
|
||||
func.flags |= FFLAG_STRAIGHT;
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user