1/* 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 --- 46 unchanged lines hidden (view full) --- 55/** Ticked attaches gem5's event queue/scheduler to evaluate 56 * calls and provides a start/stop interface to ticking. 57 * 58 * Ticked is not a ClockedObject but can be attached to one by 59 * inheritance and by calling regStats, serialize/unserialize */ 60class Ticked : public Serializable 61{ 62 protected: |
63 /** ClockedObject who is responsible for this Ticked's actions/stats */ 64 ClockedObject &object; 65 |
66 /** The wrapper for processClockEvent */ 67 EventFunctionWrapper event; |
68 |
69 /** Evaluate and reschedule */ 70 void processClockEvent(); 71 |
72 /** Have I been started? and am not stopped */ 73 bool running; 74 75 /** Time of last stop event to calculate run time */ 76 Cycles lastStopped; 77 78 private: 79 /** Locally allocated stats */ --- 103 unchanged lines hidden --- |