Fix hash detection of branches to jr ra.

This makes it more correctly identify functions.
This commit is contained in:
Unknown W. Brackets 2013-12-01 20:23:16 -08:00
parent eac8b1a84d
commit b2971314b8

View file

@ -262,9 +262,10 @@ namespace MIPSAnalyst {
}
}
if (op == MIPS_MAKE_JR_RA()) {
if (furthestBranch >= addr) {
// If a branch goes to the jr ra, it's still ending here.
if (furthestBranch > addr) {
looking = true;
addr+=4;
addr += 4;
} else {
end = true;
}