Review Board 2.0.15


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)
Review request changed
Updated (Feb. 18, 2013, 7:11 p.m.)

Status: Closed (submitted)