diff options
author | Chris Emmons <chris.emmons@arm.com> | 2011-05-04 20:38:26 -0500 |
---|---|---|
committer | Chris Emmons <chris.emmons@arm.com> | 2011-05-04 20:38:26 -0500 |
commit | 8dcbf8576e3d3a1664ab1917ec7d9c3204435420 (patch) | |
tree | 67a4df8375ebaa504966a4188598b8d2aa1ffc57 /src/dev | |
parent | 09a2be0c391d603bb4d56d6abf1b6d7868778879 (diff) | |
download | gem5-8dcbf8576e3d3a1664ab1917ec7d9c3204435420.tar.xz |
RealView: Fix the 24 and 100MHz clocks which were providing incorrect values.
Diffstat (limited to 'src/dev')
-rw-r--r-- | src/dev/arm/rv_ctrl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dev/arm/rv_ctrl.cc b/src/dev/arm/rv_ctrl.cc index 6716dd75f..f9cdbe8a1 100644 --- a/src/dev/arm/rv_ctrl.cc +++ b/src/dev/arm/rv_ctrl.cc @@ -62,12 +62,12 @@ RealViewCtrl::read(PacketPtr pkt) break; case Clock24: Tick clk; - clk = (Tick)(curTick() / (24 * SimClock::Float::MHz)); + clk = (Tick)(curTick() / (24 * SimClock::Int::us)); pkt->set((uint32_t)(clk)); break; case Clock100: Tick clk100; - clk100 = (Tick)(curTick() / (100 * SimClock::Float::MHz)); + clk100 = (Tick)(curTick() / (100 * SimClock::Int::us)); pkt->set((uint32_t)(clk100)); break; case Flash: |