summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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())); }
};