projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2157b99
)
ARM: Add support for read of 100MHz clock in system controller.
author
Ali Saidi
<Ali.Saidi@ARM.com>
Wed, 23 Feb 2011 21:10:48 +0000
(15:10 -0600)
committer
Ali Saidi
<Ali.Saidi@ARM.com>
Wed, 23 Feb 2011 21:10:48 +0000
(15:10 -0600)
src/dev/arm/rv_ctrl.cc
patch
|
blob
|
history
diff --git
a/src/dev/arm/rv_ctrl.cc
b/src/dev/arm/rv_ctrl.cc
index b1bbc065b44e005330085674d11d59af0d60179c..6716dd75f36da62f0a8f68852b3706f07e17fe06 100644
(file)
--- 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;