From e2a6275c037c6be1bad1f876aa7fbaf3864e9e53 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Wed, 23 Feb 2011 15:10:48 -0600 Subject: [PATCH] ARM: Add support for read of 100MHz clock in system controller. --- src/dev/arm/rv_ctrl.cc | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.30.2