From: Nilay Vaish Date: Tue, 26 Nov 2013 23:05:22 +0000 (-0600) Subject: sim: correct ticksToCycles() function. X-Git-Tag: stable_2014_02_15~16 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9fb93e5cd226ca928ef9cd45bcefcbd94649f4ea;p=gem5.git sim: correct ticksToCycles() function. --- 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())); } };