ARM: Add support for read of 100MHz clock in system controller.
authorAli Saidi <Ali.Saidi@ARM.com>
Wed, 23 Feb 2011 21:10:48 +0000 (15:10 -0600)
committerAli Saidi <Ali.Saidi@ARM.com>
Wed, 23 Feb 2011 21:10:48 +0000 (15:10 -0600)
src/dev/arm/rv_ctrl.cc

index b1bbc065b44e005330085674d11d59af0d60179c..6716dd75f36da62f0a8f68852b3706f07e17fe06 100644 (file)
@@ -65,6 +65,11 @@ RealViewCtrl::read(PacketPtr pkt)
         clk = (Tick)(curTick() / (24 * SimClock::Float::MHz));
         pkt->set((uint32_t)(clk));
         break;
+      case Clock100:
+        Tick clk100;
+        clk100 = (Tick)(curTick() / (100 * SimClock::Float::MHz));
+        pkt->set((uint32_t)(clk100));
+        break;
       case Flash:
         pkt->set<uint32_t>(0);
         break;