sim_object.hh (11067:5379f099e488) sim_object.hh (11168:f98eb2da15a4)
1/*
2 * Copyright (c) 2015 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

--- 170 unchanged lines hidden (view full) ---

179 * schedule initial event(s) for objects that need them.
180 */
181 virtual void startup();
182
183 /**
184 * Provide a default implementation of the drain interface for
185 * objects that don't need draining.
186 */
1/*
2 * Copyright (c) 2015 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

--- 170 unchanged lines hidden (view full) ---

179 * schedule initial event(s) for objects that need them.
180 */
181 virtual void startup();
182
183 /**
184 * Provide a default implementation of the drain interface for
185 * objects that don't need draining.
186 */
187 DrainState drain() M5_ATTR_OVERRIDE { return DrainState::Drained; }
187 DrainState drain() override { return DrainState::Drained; }
188
189 /**
190 * Write back dirty buffers to memory using functional writes.
191 *
192 * After returning, an object implementing this method should have
193 * written all its dirty data back to memory. This method is
194 * typically used to prepare a system with caches for
195 * checkpointing.

--- 8 unchanged lines hidden (view full) ---

204 * that might become stale when we return. This method is used to
205 * flush all such state back to main memory.
206 *
207 * @warn This does <i>not</i> cause any dirty state to be written
208 * back to memory.
209 */
210 virtual void memInvalidate() {};
211
188
189 /**
190 * Write back dirty buffers to memory using functional writes.
191 *
192 * After returning, an object implementing this method should have
193 * written all its dirty data back to memory. This method is
194 * typically used to prepare a system with caches for
195 * checkpointing.

--- 8 unchanged lines hidden (view full) ---

204 * that might become stale when we return. This method is used to
205 * flush all such state back to main memory.
206 *
207 * @warn This does <i>not</i> cause any dirty state to be written
208 * back to memory.
209 */
210 virtual void memInvalidate() {};
211
212 void serialize(CheckpointOut &cp) const M5_ATTR_OVERRIDE {};
213 void unserialize(CheckpointIn &cp) M5_ATTR_OVERRIDE {};
212 void serialize(CheckpointOut &cp) const override {};
213 void unserialize(CheckpointIn &cp) override {};
214
215 /**
216 * Serialize all SimObjects in the system.
217 */
218 static void serializeAll(CheckpointOut &cp);
219
220#ifdef DEBUG
221 public:

--- 32 unchanged lines hidden ---
214
215 /**
216 * Serialize all SimObjects in the system.
217 */
218 static void serializeAll(CheckpointOut &cp);
219
220#ifdef DEBUG
221 public:

--- 32 unchanged lines hidden ---