base.hh (11151:ca4ea9b5c052) | base.hh (11168:f98eb2da15a4) |
---|---|
1/* 2 * Copyright (c) 2011-2013 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 --- 293 unchanged lines hidden (view full) --- 302 { return reinterpret_cast<const Params *>(_params); } 303 BaseCPU(Params *params, bool is_checker = false); 304 virtual ~BaseCPU(); 305 306 virtual void init(); 307 virtual void startup(); 308 virtual void regStats(); 309 | 1/* 2 * Copyright (c) 2011-2013 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 --- 293 unchanged lines hidden (view full) --- 302 { return reinterpret_cast<const Params *>(_params); } 303 BaseCPU(Params *params, bool is_checker = false); 304 virtual ~BaseCPU(); 305 306 virtual void init(); 307 virtual void startup(); 308 virtual void regStats(); 309 |
310 void regProbePoints() M5_ATTR_OVERRIDE; | 310 void regProbePoints() override; |
311 312 void registerThreadContexts(); 313 314 /** 315 * Prepare for another CPU to take over execution. 316 * 317 * When this method exits, all internal state should have been 318 * flushed. After the method returns, the simulator calls --- 75 unchanged lines hidden (view full) --- 394 * 395 * @note CPU models should normally overload the serializeThread() 396 * method instead of the serialize() method as this provides a 397 * uniform data format for all CPU models and promotes better code 398 * reuse. 399 * 400 * @param os The stream to serialize to. 401 */ | 311 312 void registerThreadContexts(); 313 314 /** 315 * Prepare for another CPU to take over execution. 316 * 317 * When this method exits, all internal state should have been 318 * flushed. After the method returns, the simulator calls --- 75 unchanged lines hidden (view full) --- 394 * 395 * @note CPU models should normally overload the serializeThread() 396 * method instead of the serialize() method as this provides a 397 * uniform data format for all CPU models and promotes better code 398 * reuse. 399 * 400 * @param os The stream to serialize to. 401 */ |
402 void serialize(CheckpointOut &cp) const M5_ATTR_OVERRIDE; | 402 void serialize(CheckpointOut &cp) const override; |
403 404 /** 405 * Reconstruct the state of this object from a checkpoint. 406 * 407 * @note CPU models should normally overload the 408 * unserializeThread() method instead of the unserialize() method 409 * as this provides a uniform data format for all CPU models and 410 * promotes better code reuse. 411 412 * @param cp The checkpoint use. 413 * @param section The section name of this object. 414 */ | 403 404 /** 405 * Reconstruct the state of this object from a checkpoint. 406 * 407 * @note CPU models should normally overload the 408 * unserializeThread() method instead of the unserialize() method 409 * as this provides a uniform data format for all CPU models and 410 * promotes better code reuse. 411 412 * @param cp The checkpoint use. 413 * @param section The section name of this object. 414 */ |
415 void unserialize(CheckpointIn &cp) M5_ATTR_OVERRIDE; | 415 void unserialize(CheckpointIn &cp) override; |
416 417 /** 418 * Serialize a single thread. 419 * 420 * @param os The stream to serialize to. 421 * @param tid ID of the current thread. 422 */ 423 virtual void serializeThread(CheckpointOut &cp, ThreadID tid) const {}; --- 158 unchanged lines hidden --- | 416 417 /** 418 * Serialize a single thread. 419 * 420 * @param os The stream to serialize to. 421 * @param tid ID of the current thread. 422 */ 423 virtual void serializeThread(CheckpointOut &cp, ThreadID tid) const {}; --- 158 unchanged lines hidden --- |