For now using the checkpoint or switchcpu pseudo instructions will return control to Python, returning the cause to be the instruction name. The user's script must then interpret the reason for exiting the simulation loop and handle the action accordingly. This may change in the future.

src/sim/pseudo_inst.cc:
    Exit sim loop with a specific string to indicate to Python what caused the exit.  The user's script needs to interpret the exit events and handle them as desired.

--HG--
extra : convert_revision : 8eb4a42285dacb3ada3a791173c605b5acb78598
This commit is contained in:
Kevin Lim 2006-07-05 23:38:11 -04:00
parent d598061dd6
commit eceba1405a

View file

@ -207,6 +207,7 @@ namespace AlphaPseudo
{
if (!doCheckpointInsts)
return;
exitSimLoop("checkpoint");
}
uint64_t
@ -278,5 +279,6 @@ namespace AlphaPseudo
void switchcpu(ThreadContext *tc)
{
exitSimLoop("switchcpu");
}
}