projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09a2be0
)
RealView: Fix the 24 and 100MHz clocks which were providing incorrect values.
author
Chris Emmons
<chris.emmons@arm.com>
Thu, 5 May 2011 01:38:26 +0000
(20:38 -0500)
committer
Chris Emmons
<chris.emmons@arm.com>
Thu, 5 May 2011 01:38:26 +0000
(20:38 -0500)
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 6716dd75f36da62f0a8f68852b3706f07e17fe06..f9cdbe8a150eaba392a9a8ec7f1f63077eb0493e 100644
(file)
--- a/
src/dev/arm/rv_ctrl.cc
+++ b/
src/dev/arm/rv_ctrl.cc
@@
-62,12
+62,12
@@
RealViewCtrl::read(PacketPtr pkt)
break;
case Clock24:
Tick clk;
- clk = (Tick)(curTick() / (24 * SimClock::
Float::MHz
));
+ clk = (Tick)(curTick() / (24 * SimClock::
Int::us
));
pkt->set((uint32_t)(clk));
break;
case Clock100:
Tick clk100;
- clk100 = (Tick)(curTick() / (100 * SimClock::
Float::MHz
));
+ clk100 = (Tick)(curTick() / (100 * SimClock::
Int::us
));
pkt->set((uint32_t)(clk100));
break;
case Flash: