RealView: Fix the 24 and 100MHz clocks which were providing incorrect values.
authorChris Emmons <chris.emmons@arm.com>
Thu, 5 May 2011 01:38:26 +0000 (20:38 -0500)
committerChris Emmons <chris.emmons@arm.com>
Thu, 5 May 2011 01:38:26 +0000 (20:38 -0500)
src/dev/arm/rv_ctrl.cc

index 6716dd75f36da62f0a8f68852b3706f07e17fe06..f9cdbe8a150eaba392a9a8ec7f1f63077eb0493e 100644 (file)
@@ -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: