sim: Make clock private and access using clockPeriod()
Review Request #1710 - Created Feb. 13, 2013 and submitted
| Information | |
|---|---|
| Andreas Hansson | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 9544:d8e3bd9d3fc2 --------------------------- sim: Make clock private and access using clockPeriod() This patch makes the clock member private to the ClockedObject and forces all children to access it using clockPeriod(). This makes it impossible to inadvertently change the clock, and also makes it easier to transition to a situation where the clock is derived from e.g. a clock domain, or through a multiplier.
All regressions passing (excluding t1000 and eio)
Posted (Feb. 16, 2013, 3:08 a.m.)
-
src/mem/bus.cc (Diff revision 1) -
Why do you need the casting?
-
src/mem/bus.cc (Diff revision 1) -
You can do (dataSize + width - 1 / width) and remove the modulo operation and the increment.
Review request changed
Updated (Feb. 17, 2013, 10:02 p.m.)
Description: |
|
||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+49 -57) |
Ship It!
