summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2013-11-26 17:05:22 -0600
committerNilay Vaish <nilay@cs.wisc.edu>2013-11-26 17:05:22 -0600
commit9fb93e5cd226ca928ef9cd45bcefcbd94649f4ea (patch)
tree21776f0fdb18582fa49f49caa311b650ecf650dc
parent4b8be6a90b39ef195313af2029cde2c0ca564a53 (diff)
downloadgem5-9fb93e5cd226ca928ef9cd45bcefcbd94649f4ea.tar.xz
sim: correct ticksToCycles() function.
-rw-r--r--src/sim/clocked_object.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/clocked_object.hh b/src/sim/clocked_object.hh
index c959c5c04..304397a38 100644
--- a/src/sim/clocked_object.hh
+++ b/src/sim/clocked_object.hh
@@ -192,7 +192,7 @@ class ClockedObject : public SimObject
}
inline Cycles ticksToCycles(Tick t) const
- { return Cycles(t / clockPeriod()); }
+ { return Cycles(divCeil(t, clockPeriod())); }
};