diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2013-11-26 17:05:22 -0600 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2013-11-26 17:05:22 -0600 |
commit | 9fb93e5cd226ca928ef9cd45bcefcbd94649f4ea (patch) | |
tree | 21776f0fdb18582fa49f49caa311b650ecf650dc | |
parent | 4b8be6a90b39ef195313af2029cde2c0ca564a53 (diff) | |
download | gem5-9fb93e5cd226ca928ef9cd45bcefcbd94649f4ea.tar.xz |
sim: correct ticksToCycles() function.
-rw-r--r-- | src/sim/clocked_object.hh | 2 |
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())); } }; |