sim: Make clock private and access using clockPeriod()
authorAndreas Hansson <andreas.hansson@arm.com>
Tue, 19 Feb 2013 10:56:06 +0000 (05:56 -0500)
committerAndreas Hansson <andreas.hansson@arm.com>
Tue, 19 Feb 2013 10:56:06 +0000 (05:56 -0500)
commit7cd49b24d2523eaf21179946e291c46c6acf5bfc
tree91c066608dfb6e4ca52dd25e91a61719848d64a7
parent5c7ebee434a0328802c01b38c19845c50ae75cab
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.
12 files changed:
src/dev/arm/timer_cpulocal.cc
src/dev/arm/timer_cpulocal.hh
src/mem/bus.cc
src/mem/bus.hh
src/mem/cache/cache_impl.hh
src/mem/cache/prefetch/base.cc
src/mem/coherent_bus.cc
src/mem/coherent_bus.hh
src/mem/noncoherent_bus.cc
src/mem/noncoherent_bus.hh
src/mem/ruby/system/RubyMemoryControl.cc
src/sim/clocked_object.hh