projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
759fe30
)
sim: clocked object: function for converting cycles to ticks.
author
Nilay Vaish
<nilay@cs.wisc.edu>
Tue, 11 Aug 2015 16:39:23 +0000
(11:39 -0500)
committer
Nilay Vaish
<nilay@cs.wisc.edu>
Tue, 11 Aug 2015 16:39:23 +0000
(11:39 -0500)
src/sim/clocked_object.hh
patch
|
blob
|
history
diff --git
a/src/sim/clocked_object.hh
b/src/sim/clocked_object.hh
index e064d7a32ee14d67e28c2f9f2bca65376040905d..5a6e9a6c3dd06b79750f144ded06687b74706d90 100644
(file)
--- a/
src/sim/clocked_object.hh
+++ b/
src/sim/clocked_object.hh
@@
-215,6
+215,8
@@
class Clocked
inline Cycles ticksToCycles(Tick t) const
{ return Cycles(divCeil(t, clockPeriod())); }
+ inline Tick cyclesToTicks(Cycles c) const
+ { return clockPeriod() * c; }
};
/**