mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 12:04:56 +00:00
PPCAnalyst: Fix off by one instruction
This commit is contained in:
parent
93ba6aa9f2
commit
40c243df28
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue