sim: have a curTick per eventq
Review Request #1537 - Created Nov. 14, 2012 and submitted
| Information | |
|---|---|
| Nilay Vaish | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 9356:fa8ef864296e --------------------------- sim: have a curTick per eventq This patch adds a _curTick variable to an eventq. This variable is updated whenever an event is serviced in function serviceOne(), or all events upto a particular time are processed in function serviceEvents(). This change helps when there are eventqs that do not make use of curTick for scheduling events.
Posted (Nov. 14, 2012, 6:23 a.m.)
I'd love to see this, but I'd rather see better encapsulation.
-
src/sim/core.hh (Diff revision 1) -
This should go.
-
src/sim/core.hh (Diff revision 1) -
This should become: inline Tick curTick { return mainEventQueue.curTick(); } -
src/sim/core.hh (Diff revision 1) -
Is this still needed?
-
src/sim/core.cc (Diff revision 1) -
This should go
-
src/sim/eventq.hh (Diff revision 1) -
Shouldn't this be private with a public accessor?
Review request changed
Updated (Nov. 15, 2012, 6:07 a.m.)
Summary: |
|
|||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
|||||||||||||||||||||||||||
Diff: |
Revision 2 (+135 -82) |
Much better. Thanks!
Thanks for the effort to clean this up!
