From: Ali Saidi Date: Wed, 23 Feb 2011 21:10:48 +0000 (-0600) Subject: ARM: Add support for read of 100MHz clock in system controller. X-Git-Tag: stable_2012_02_02~546 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e2a6275c037c6be1bad1f876aa7fbaf3864e9e53;p=gem5.git ARM: Add support for read of 100MHz clock in system controller. --- diff --git a/src/dev/arm/rv_ctrl.cc b/src/dev/arm/rv_ctrl.cc index b1bbc065b..6716dd75f 100644 --- a/src/dev/arm/rv_ctrl.cc +++ b/src/dev/arm/rv_ctrl.cc @@ -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(0); break;