41 #ifndef __DEV_ARM_LOCALTIMER_HH__
42 #define __DEV_ARM_LOCALTIMER_HH__
46 #include "params/CpuLocalTimer.hh"
86 Bitfield<1> autoReload;
87 Bitfield<2> intEnable;
140 std::
string name()
const {
return _name; }
194 #endif // __DEV_ARM_SP804_HH__
Tick write(PacketPtr pkt) override
Handle a write to the device.
Timer localTimer[CPU_MAX]
Timers that do the actual work.
BitUnion32(TimerCtrl) Bitfield< 0 > enable
void read(PacketPtr pkt, Addr daddr)
Handle read for a single timer.
void restartTimerCounter(uint32_t val)
Restart the counter ticking at val.
bool pendingIntTimer
If an interrupt is currently pending.
uint32_t intNumTimer
Number of interrupt to cause/clear.
EndBitUnion(TimerCtrl) BitUnion32(WatchdogCtrl) Bitfield< 0 > enable
uint32_t timerLoadValue
Value to load into counters when periodic mode reaches 0.
EndBitUnion(WatchdogCtrl) protected CpuLocalTimer * parent
Pointer to parent class.
BaseGic * gic
Pointer to the GIC for causing an interrupt.
void serialize(CheckpointOut &cp) const override
Serialize an object.
CpuLocalTimerParams Params
void serialize(CheckpointOut &cp) const override
Serialize an object.
TimerCtrl timerControl
Control register as specified above.
uint64_t Tick
Tick count type.
uint32_t cpuNum
Cpu this timer is attached to.
void write(PacketPtr pkt, Addr daddr)
Handle write for a single timer.
Bitfield< 15, 8 > prescalar
uint32_t watchdogLoadValue
void unserialize(CheckpointIn &cp) override
Unserialize an object.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
bool rawIntTimer
If timer has caused an interrupt.
A Packet is used to encapsulate a transfer between two objects in the memory system (e...
Basic support for object serialization.
Bitfield< 7, 3 > reserved
void restartWatchdogCounter(uint32_t val)
void timerAtZero()
Called when the counter reaches 0.
Bitfield< 3 > watchdogMode
uint32_t watchdogDisableReg
std::ostream CheckpointOut
Tick read(PacketPtr pkt) override
Handle a read to the device.
const SimObjectParams * _params
Cached copy of the object parameters.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
EventWrapper< Timer,&Timer::watchdogAtZero > watchdogZeroEvent
EventWrapper< Timer,&Timer::timerAtZero > timerZeroEvent
CpuLocalTimer(Params *p)
The constructor for RealView just registers itself with the MMU.
WatchdogCtrl watchdogControl
const Params * params() const