From 9fb93e5cd226ca928ef9cd45bcefcbd94649f4ea Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Tue, 26 Nov 2013 17:05:22 -0600 Subject: [PATCH] sim: correct ticksToCycles() function. --- src/sim/clocked_object.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())); } }; -- 2.30.2