clocked_object.hh (11422:4f749e00b667) clocked_object.hh (11424:e07fd01651f3)
1/*
2 * Copyright (c) 2012-2013, 2015 ARM Limited
3 * Copyright (c) 2013 Cornell University
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

231/**
232 * The ClockedObject class extends the SimObject with a clock and
233 * accessor functions to relate ticks to the cycles of the object.
234 */
235class ClockedObject
236 : public SimObject, public Clocked
237{
238 public:
1/*
2 * Copyright (c) 2012-2013, 2015 ARM Limited
3 * Copyright (c) 2013 Cornell University
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

231/**
232 * The ClockedObject class extends the SimObject with a clock and
233 * accessor functions to relate ticks to the cycles of the object.
234 */
235class ClockedObject
236 : public SimObject, public Clocked
237{
238 public:
239 ClockedObject(const ClockedObjectParams *p)
240 : SimObject(p), Clocked(*p->clk_domain),
241 _currPwrState(p->default_p_state),
242 prvEvalTick(0)
243 { }
239 ClockedObject(const ClockedObjectParams *p);
244
245 /** Parameters of ClockedObject */
246 typedef ClockedObjectParams Params;
247 const Params* params() const
248 { return reinterpret_cast<const Params*>(_params); }
249
250 void serialize(CheckpointOut &cp) const override;
251 void unserialize(CheckpointIn &cp) override;

--- 43 unchanged lines hidden ---
240
241 /** Parameters of ClockedObject */
242 typedef ClockedObjectParams Params;
243 const Params* params() const
244 { return reinterpret_cast<const Params*>(_params); }
245
246 void serialize(CheckpointOut &cp) const override;
247 void unserialize(CheckpointIn &cp) override;

--- 43 unchanged lines hidden ---