Review Board 2.0.15


[ARM] fix the calculation of the values in the 24 MHz clock

Review Request #1182 - Created May 8, 2012 and submitted - Latest diff uploaded

Information
Koan-Sin Tan
gem5
Reviewers
Default
fix the calculation of the value in the system register for the 24 MHz clock

Let x be the value,
  currTick() / Frequency = x / (24 x 10^6) 
  x = curTick() * 24 / SimClock::Int::us

on realview platform, sched_clock() relies on the 24 MHz. So does the timestamp for printk(). The original calculation is problematic.


Similar calculation for the 100 Hz register. 
Let x be the value,
  currTick() / Frequency = x  / 100 
  x = curTick() * 100 / Frequency