Statetrace: Make statetrace do string instructions all at once like m5 does.
--HG-- extra : convert_revision : 2103029077450e46f70077066708255310963d9d
This commit is contained in:
parent
cd3f0646ca
commit
e85144bff2
1 changed files with 9 additions and 1 deletions
|
@ -317,7 +317,15 @@ bool AMD64TraceChild::step()
|
||||||
ptrace(PTRACE_POKEDATA, pid, ripAfterSyscall, buf);
|
ptrace(PTRACE_POKEDATA, pid, ripAfterSyscall, buf);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ptraceSingleStep();
|
{
|
||||||
|
//Get all the way past repe and repne string instructions in one shot.
|
||||||
|
uint64_t newPC, origPC = getPC();
|
||||||
|
do
|
||||||
|
{
|
||||||
|
ptraceSingleStep();
|
||||||
|
newPC = getPC();
|
||||||
|
} while(newPC == origPC);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TraceChild * genTraceChild()
|
TraceChild * genTraceChild()
|
||||||
|
|
Loading…
Reference in a new issue