ticked_object.hh (10905:a6ca6831e775) | ticked_object.hh (11168:f98eb2da15a4) |
---|---|
1/* 2 * Copyright (c) 2013-2014 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 --- 150 unchanged lines hidden (view full) --- 159 if (event.scheduled()) 160 object.deschedule(event); 161 running = false; 162 resetLastStopped(); 163 } 164 } 165 166 /** Checkpoint lastStopped */ | 1/* 2 * Copyright (c) 2013-2014 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 --- 150 unchanged lines hidden (view full) --- 159 if (event.scheduled()) 160 object.deschedule(event); 161 running = false; 162 resetLastStopped(); 163 } 164 } 165 166 /** Checkpoint lastStopped */ |
167 void serialize(CheckpointOut &cp) const M5_ATTR_OVERRIDE; 168 void unserialize(CheckpointIn &cp) M5_ATTR_OVERRIDE; | 167 void serialize(CheckpointOut &cp) const override; 168 void unserialize(CheckpointIn &cp) override; |
169 170 /** Action to call on the clock tick */ 171 virtual void evaluate() = 0; 172 173 /** 174 * Callback to handle cycle statistics and probes. 175 * 176 * This callback is called at the beginning of a new cycle active --- 17 unchanged lines hidden (view full) --- 194 195 /** Disambiguate to make these functions overload correctly */ 196 using ClockedObject::regStats; 197 using ClockedObject::serialize; 198 using ClockedObject::unserialize; 199 200 /** Pass on regStats, serialize etc. onto Ticked */ 201 void regStats(); | 169 170 /** Action to call on the clock tick */ 171 virtual void evaluate() = 0; 172 173 /** 174 * Callback to handle cycle statistics and probes. 175 * 176 * This callback is called at the beginning of a new cycle active --- 17 unchanged lines hidden (view full) --- 194 195 /** Disambiguate to make these functions overload correctly */ 196 using ClockedObject::regStats; 197 using ClockedObject::serialize; 198 using ClockedObject::unserialize; 199 200 /** Pass on regStats, serialize etc. onto Ticked */ 201 void regStats(); |
202 void serialize(CheckpointOut &cp) const M5_ATTR_OVERRIDE; 203 void unserialize(CheckpointIn &cp) M5_ATTR_OVERRIDE; | 202 void serialize(CheckpointOut &cp) const override; 203 void unserialize(CheckpointIn &cp) override; |
204}; 205 206#endif /* __SIM_TICKED_OBJECT_HH__ */ | 204}; 205 206#endif /* __SIM_TICKED_OBJECT_HH__ */ |