ticked_object.hh (11800:54436a1784dc) | ticked_object.hh (12113:bdf1545c9919) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2013-2014 ARM Limited | 2 * Copyright (c) 2013-2014, 2017 ARM Limited |
3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 174 unchanged lines hidden (view full) --- 185 virtual void countCycles(Cycles delta) {} 186}; 187 188/** TickedObject attaches Ticked to ClockedObject and can be used as 189 * a base class where ticked operation */ 190class TickedObject : public ClockedObject, public Ticked 191{ 192 public: | 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 174 unchanged lines hidden (view full) --- 185 virtual void countCycles(Cycles delta) {} 186}; 187 188/** TickedObject attaches Ticked to ClockedObject and can be used as 189 * a base class where ticked operation */ 190class TickedObject : public ClockedObject, public Ticked 191{ 192 public: |
193 TickedObject(TickedObjectParams *params, | 193 TickedObject(const TickedObjectParams *params, |
194 Event::Priority priority = Event::CPU_Tick_Pri); 195 196 /** Disambiguate to make these functions overload correctly */ 197 using ClockedObject::regStats; 198 using ClockedObject::serialize; 199 using ClockedObject::unserialize; 200 201 /** Pass on regStats, serialize etc. onto Ticked */ 202 void regStats() override; 203 void serialize(CheckpointOut &cp) const override; 204 void unserialize(CheckpointIn &cp) override; 205}; 206 207#endif /* __SIM_TICKED_OBJECT_HH__ */ | 194 Event::Priority priority = Event::CPU_Tick_Pri); 195 196 /** Disambiguate to make these functions overload correctly */ 197 using ClockedObject::regStats; 198 using ClockedObject::serialize; 199 using ClockedObject::unserialize; 200 201 /** Pass on regStats, serialize etc. onto Ticked */ 202 void regStats() override; 203 void serialize(CheckpointOut &cp) const override; 204 void unserialize(CheckpointIn &cp) override; 205}; 206 207#endif /* __SIM_TICKED_OBJECT_HH__ */ |