timer_sp804.cc (12086:069c529a76fd) timer_sp804.cc (12772:362544959c40)
1/*
2 * Copyright (c) 2010 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

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

43#include "base/trace.hh"
44#include "debug/Checkpoint.hh"
45#include "debug/Timer.hh"
46#include "dev/arm/base_gic.hh"
47#include "mem/packet.hh"
48#include "mem/packet_access.hh"
49
50Sp804::Sp804(Params *p)
1/*
2 * Copyright (c) 2010 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

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

43#include "base/trace.hh"
44#include "debug/Checkpoint.hh"
45#include "debug/Timer.hh"
46#include "dev/arm/base_gic.hh"
47#include "mem/packet.hh"
48#include "mem/packet_access.hh"
49
50Sp804::Sp804(Params *p)
51 : AmbaPioDevice(p, 0xfff), gic(p->gic),
51 : AmbaPioDevice(p, 0x1000), gic(p->gic),
52 timer0(name() + ".timer0", this, p->int_num0, p->clock0),
53 timer1(name() + ".timer1", this, p->int_num1, p->clock1)
54{
55}
56
57Sp804::Timer::Timer(std::string __name, Sp804 *_parent, int int_num, Tick _clock)
58 : _name(__name), parent(_parent), intNum(int_num), clock(_clock), control(0x20),
59 rawInt(false), pendingInt(false), loadValue(0xffffffff),

--- 227 unchanged lines hidden ---
52 timer0(name() + ".timer0", this, p->int_num0, p->clock0),
53 timer1(name() + ".timer1", this, p->int_num1, p->clock1)
54{
55}
56
57Sp804::Timer::Timer(std::string __name, Sp804 *_parent, int int_num, Tick _clock)
58 : _name(__name), parent(_parent), intNum(int_num), clock(_clock), control(0x20),
59 rawInt(false), pendingInt(false), loadValue(0xffffffff),

--- 227 unchanged lines hidden ---