1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Started with some simulation to determine 'step into' symbol lookup

This commit is contained in:
Brian Fiete 2020-03-21 13:09:19 -07:00
parent 9413d3ded4
commit 6412a27f97
6 changed files with 118 additions and 20 deletions

View file

@ -374,7 +374,7 @@ void X86Instr::MarkRegsUsed(Array<RegForm>& regsUsed, bool overrideForm)
}
}
uint32 X86Instr::GetTarget(X86CPURegisters* registers)
uint32 X86Instr::GetTarget(Debugger* debugger, X86CPURegisters* registers)
{
const MCInstrDesc &instDesc = mX86->mInstrInfo->get(mMCInst.getOpcode());
@ -388,7 +388,7 @@ uint32 X86Instr::GetTarget(X86CPURegisters* registers)
opIdx = 4;
operand = mMCInst.getOperand(opIdx);
}
if (operand.isImm())
{
auto targetAddr = (uint32)operand.getImm();
@ -402,6 +402,11 @@ uint32 X86Instr::GetTarget(X86CPURegisters* registers)
return 0;
}
bool X86Instr::PartialSimulate(Debugger* debugger, X86CPURegisters* registers)
{
return false;
}
X86CPU::X86CPU() :
mWarningStream(mWarningString),
mCommentStream(mCommentString)