Improved MipsAnalysis by handling unconditional jumps to detect functions.

This commit is contained in:
Jean-Philip Desjardins 2015-03-23 22:15:59 -04:00
parent 03656baedb
commit c5a26aab15

View File

@ -241,6 +241,13 @@ void CMIPSAnalysis::ExpandSubroutines(uint32 executableStart, uint32 executableE
//+4 for delay slot
return address + 4;
}
//Check for BEQ R0, R0, $label
if((opcode & 0xFFFF0000) == 0x10000000)
{
//+4 for delay slot
return address + 4;
}
}
return MIPS_INVALID_PC;