projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d598061
)
For now using the checkpoint or switchcpu pseudo instructions will return control...
author
Kevin Lim
<ktlim@umich.edu>
Thu, 6 Jul 2006 03:38:11 +0000
(23:38 -0400)
committer
Kevin Lim
<ktlim@umich.edu>
Thu, 6 Jul 2006 03:38:11 +0000
(23:38 -0400)
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
src/sim/pseudo_inst.cc
patch
|
blob
|
history
diff --git
a/src/sim/pseudo_inst.cc
b/src/sim/pseudo_inst.cc
index dc08e6c06e9a72c56dca937e11ce71dd3a9c65e6..869805f5c7e48f10840435493d987aa9f6388775 100644
(file)
--- a/
src/sim/pseudo_inst.cc
+++ b/
src/sim/pseudo_inst.cc
@@
-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");
}
}