generic_timer.cc (10905:a6ca6831e775) generic_timer.cc (11668:380375085863)
1/*
2 * Copyright (c) 2013, 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

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

229
230
231GenericTimer::GenericTimer(GenericTimerParams *p)
232 : SimObject(p),
233 gic(p->gic),
234 irqPhys(p->int_phys),
235 irqVirt(p->int_virt)
236{
1/*
2 * Copyright (c) 2013, 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

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

229
230
231GenericTimer::GenericTimer(GenericTimerParams *p)
232 : SimObject(p),
233 gic(p->gic),
234 irqPhys(p->int_phys),
235 irqVirt(p->int_virt)
236{
237 dynamic_cast<ArmSystem &>(*p->system).setGenericTimer(this);
237 fatal_if(!p->system, "No system specified, can't instantiate timer.\n");
238 p->system->setGenericTimer(this);
238}
239
240void
241GenericTimer::serialize(CheckpointOut &cp) const
242{
243 paramOut(cp, "cpu_count", timers.size());
244
245 systemCounter.serializeSection(cp, "sys_counter");

--- 574 unchanged lines hidden ---
239}
240
241void
242GenericTimer::serialize(CheckpointOut &cp) const
243{
244 paramOut(cp, "cpu_count", timers.size());
245
246 systemCounter.serializeSection(cp, "sys_counter");

--- 574 unchanged lines hidden ---