diff options
| author | Sepalani <sepalani@hotmail.fr> | 2017-05-07 04:34:02 +0100 |
|---|---|---|
| committer | Sepalani <sepalani@hotmail.fr> | 2017-05-07 04:56:16 +0100 |
| commit | 40c243df287e46f596eecbe58b6492f2db9b0cbe (patch) | |
| tree | 9d5611aaee954018a0a84c8d0e66a0257898cbce /Source/Core | |
| parent | 93ba6aa9f29189917c248c3d8986492f4218db71 (diff) | |
PPCAnalyst: Fix off by one instruction
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/PowerPC/PPCAnalyst.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/Core/PowerPC/PPCAnalyst.cpp b/Source/Core/Core/PowerPC/PPCAnalyst.cpp index 1d39d308c3..90288cdbd9 100644 --- a/Source/Core/Core/PowerPC/PPCAnalyst.cpp +++ b/Source/Core/Core/PowerPC/PPCAnalyst.cpp @@ -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; |
