Go to the documentation of this file.
38 #ifndef __DEV_ARM_LOCALTIMER_HH__
39 #define __DEV_ARM_LOCALTIMER_HH__
43 #include "params/CpuLocalTimer.hh"
138 std::string
name()
const {
return _name; }
172 void init()
override;
193 #endif // __DEV_ARM_SP804_HH__
Bitfield< 3 > watchdogMode
void unserialize(CheckpointIn &cp) override
Unserialize an object.
void serialize(CheckpointOut &cp) const override
Serialize an object.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
TimerCtrl timerControl
Control register as specified above.
void write(PacketPtr pkt, Addr daddr)
Handle write for a single timer.
Basic support for object serialization.
ArmInterruptPin * intTimer
Interrupt to cause/clear.
uint64_t Tick
Tick count type.
EventFunctionWrapper watchdogZeroEvent
WatchdogCtrl watchdogControl
Bitfield< 15, 8 > prescalar
CpuLocalTimer(Params *p)
The constructor for RealView just registers itself with the MMU.
void restartWatchdogCounter(uint32_t val)
uint32_t watchdogLoadValue
Bitfield< 7, 4 > reserved
void init() override
Inits the local timers.
uint32_t watchdogDisableReg
Bitfield< 7, 3 > reserved
Tick read(PacketPtr pkt) override
Handle a read to the device.
bool pendingIntTimer
If an interrupt is currently pending.
Tick write(PacketPtr pkt) override
Handle a write to the device.
EndBitUnion(TimerCtrl) BitUnion32(WatchdogCtrl) Bitfield< 0 > enable
uint32_t timerLoadValue
Value to load into counters when periodic mode reaches 0.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
CpuLocalTimerParams Params
EventFunctionWrapper timerZeroEvent
BitUnion32(TimerCtrl) Bitfield< 0 > enable
ArmInterruptPin * intWatchdog
const SimObjectParams * _params
Cached copy of the object parameters.
void restartTimerCounter(uint32_t val)
Restart the counter ticking at val.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
Generic representation of an Arm interrupt pin.
const Params * params() const
void read(PacketPtr pkt, Addr daddr)
Handle read for a single timer.
BaseGic * gic
Pointer to the GIC for causing an interrupt.
std::ostream CheckpointOut
bool rawIntTimer
If timer has caused an interrupt.
void timerAtZero()
Called when the counter reaches 0.
std::vector< std::unique_ptr< Timer > > localTimer
Timers that do the actual work.
void serialize(CheckpointOut &cp) const override
Serialize an object.
EndBitUnion(WatchdogCtrl) protected CpuLocalTimer * parent
Pointer to parent class.
Timer(const std::string &name, CpuLocalTimer *_parent, ArmInterruptPin *int_timer, ArmInterruptPin *int_watchdog)
Generated on Wed Sep 30 2020 14:02:10 for gem5 by doxygen 1.8.17