changeset e2364b281ee3 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=e2364b281ee3
description:
ARM: fix the calculation of the values in the RV clocks
This clock is used by the linux scheduler.
diffstat:
src/dev/arm/rv_ctrl.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 37b7913d2d35 -r e2364b281ee3 src/dev/arm/rv_ctrl.cc
--- a/src/dev/arm/rv_ctrl.cc Thu May 10 18:04:28 2012 -0500
+++ b/src/dev/arm/rv_ctrl.cc Thu May 10 18:04:28 2012 -0500
@@ -65,12 +65,12 @@
break;
case Clock24:
Tick clk;
- clk = (Tick)(curTick() / (24 * SimClock::Int::us));
+ clk = SimClock::Float::MHz * curTick() * 24;
pkt->set((uint32_t)(clk));
break;
case Clock100:
Tick clk100;
- clk100 = (Tick)(curTick() / (100 * SimClock::Int::us));
+ clk100 = SimClock::Float::MHz * curTick() * 100;
pkt->set((uint32_t)(clk100));
break;
case Flash:
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev