summaryrefslogtreecommitdiff
path: root/src/sim/clock_domain.hh
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2015-08-07 09:59:22 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2015-08-07 09:59:22 +0100
commitf7ff27afe8610460e88b7032391d679a3b8920f4 (patch)
treefd0ed94e531e2946aeb1ad0eb3f818d40f3962bc /src/sim/clock_domain.hh
parent9b2426ecfc4f004fe77badb4cc64f93af3a2d0d3 (diff)
downloadgem5-f7ff27afe8610460e88b7032391d679a3b8920f4.tar.xz
sim: Split ClockedObject to make it usable to non-SimObjects
Split ClockedObject into two classes: Clocked that provides the basic clock functionality, and ClockedObject that inherits from Clocked and SimObject to provide the functionality of the old ClockedObject.
Diffstat (limited to 'src/sim/clock_domain.hh')
-rw-r--r--src/sim/clock_domain.hh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sim/clock_domain.hh b/src/sim/clock_domain.hh
index c4242af55..e0dce973b 100644
--- a/src/sim/clock_domain.hh
+++ b/src/sim/clock_domain.hh
@@ -62,7 +62,7 @@
*/
class DerivedClockDomain;
class VoltageDomain;
-class ClockedObject;
+class Clocked;
/**
* The ClockDomain provides clock to group of clocked objects bundled
@@ -103,7 +103,7 @@ class ClockDomain : public SimObject
* Pointers to members of this clock domain, so that when the clock
* period changes, we can update each member's tick.
*/
- std::vector<ClockedObject*> members;
+ std::vector<Clocked *> members;
public:
@@ -123,11 +123,11 @@ class ClockDomain : public SimObject
Tick clockPeriod() const { return _clockPeriod; }
/**
- * Register a ClockedObject to this ClockDomain.
+ * Register a Clocked object with this ClockDomain.
*
- * @param ClockedObject to add as a member
+ * @param Clocked to add as a member
*/
- void registerWithClockDomain(ClockedObject *c)
+ void registerWithClockDomain(Clocked *c)
{
assert(c != NULL);
assert(std::find(members.begin(), members.end(), c) == members.end());