Restore state before 2nd preparation step
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1725 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
@ -189,10 +189,14 @@ bool L4SysExperiment::run() {
|
|||||||
simulator.save(L4SYS_STATE_FOLDER);
|
simulator.save(L4SYS_STATE_FOLDER);
|
||||||
#elif PREPARATION_STEP == 2
|
#elif PREPARATION_STEP == 2
|
||||||
// STEP 2: determine instructions executed
|
// STEP 2: determine instructions executed
|
||||||
|
log << "restoring state" << endl;
|
||||||
|
simulator.restore(L4SYS_STATE_FOLDER);
|
||||||
|
log << "EIP = " << hex
|
||||||
|
<< simulator.getRegisterManager().getInstructionPointer()
|
||||||
|
<< endl;
|
||||||
|
|
||||||
// count the first instruction which has already been executed
|
int count = 0;
|
||||||
int count = 1;
|
int ul = 0, kernel = 0;
|
||||||
int ul = 1, kernel = 0;
|
|
||||||
bp.setWatchInstructionPointer(ANY_ADDR);
|
bp.setWatchInstructionPointer(ANY_ADDR);
|
||||||
for (; bp.getTriggerInstructionPointer() != L4SYS_FUNC_EXIT; ++count) {
|
for (; bp.getTriggerInstructionPointer() != L4SYS_FUNC_EXIT; ++count) {
|
||||||
simulator.addListenerAndResume(&bp);
|
simulator.addListenerAndResume(&bp);
|
||||||
|
|||||||
Reference in New Issue
Block a user