CPU: Add functions to get the number of executed instructions and set the
Review Request #51 - Created July 9, 2010 and updated
Information | |
---|---|
Timothy Jones | |
gem5 | |
Reviewers | |
Default | |
CPU: Add functions to get the number of executed instructions and set the maximum number of instructions to execute to the CPUs and allow them to be called from python.
Posted (July 10, 2010, 1:52 a.m.)
-
src/cpu/base.cc (Diff revision 1) -
Is there a reason to allocate this dynamically instead of having a single static counter per CPU object?
-
src/sim/eventq.hh (Diff revision 1) -
I don't like getting rid of this assertion... it's actually pretty useful in knowing when something's not right. You should add some code upstream somewhere to skip adding the event if we're already past it.
-
src/sim/sim_object.cc (Diff revision 1) -
I'd prefer a more informative message like "Error: setMaxInsts called on non-CPU" (and same with the following function). There's a broader question of whether this is how we want to expose subclass-specific methods to Python... I don't have any great ideas for alternatives, but Nate might.