summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Saidi <Ali.Saidi@ARM.com>2011-02-23 15:10:48 -0600
committerAli Saidi <Ali.Saidi@ARM.com>2011-02-23 15:10:48 -0600
commite2a6275c037c6be1bad1f876aa7fbaf3864e9e53 (patch)
treeec63c75b3753cd6c0f04911d0720092f2cad6406
parent2157b9976b55a6f3c25bbb788cdde931092aad3d (diff)
downloadgem5-e2a6275c037c6be1bad1f876aa7fbaf3864e9e53.tar.xz
ARM: Add support for read of 100MHz clock in system controller.
-rw-r--r--src/dev/arm/rv_ctrl.cc5
1 files changed, 5 insertions, 0 deletions
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<uint32_t>(0);
break;