sim: core: add setCurTick() function
Review Request #2135 - Created Dec. 28, 2013 and discarded
| Information | |
|---|---|
| Ola Jeppsson | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 10004:7c8348d23222 --------------------------- sim: core: add setCurTick() function Add setCurTick() function that sets the simulation clock for the current event queue to the specified value. --- src/sim/core.hh | 3 +++ 1 file changed, 3 insertions(+) This is needed for a patch I have to make unittest:stattest work again.
Posted (Jan. 4, 2014, 11:45 a.m.)
Perhaps this should have an _ and a warning in the comments about it's usage? It seem like it's pretty easy to shoot yourself in the foot with this.
Posted (Jan. 5, 2014, 5:32 p.m.)
I'd like to understand a little better exactly what problem this is solving. Like Ali, I'm sort of concerned about exposing something like this unless it's really necessary. For example, if you want to move curTick() ahead to a certain point, you can always to that by scheduling an event. I can believe that that's not the most convenient thing, but I'd like to be convinced that it's so inconvenient that this function really is necessary before we add this method.
