Go to the documentation of this file.
39 #ifndef __DEV_ARM_GLOBAL_TIMER_HH__
40 #define __DEV_ARM_GLOBAL_TIMER_HH__
43 #include "params/A9GlobalTimer.hh"
126 std::string
name()
const {
return _name; }
175 #endif // __DEV_ARM_GLOBAL_TIMER_HH__
A9GlobalTimerParams Params
Tick read(PacketPtr pkt) override
Handle a read to the device.
uint32_t autoIncValue
Value to add to comparator when counter reaches comparator.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
Bitfield< 7, 4 > reserved
Tick write(PacketPtr pkt) override
Handle a write to the device.
Basic support for object serialization.
uint64_t cmpVal
Value of the comparator.
uint64_t Tick
Tick count type.
void read(PacketPtr pkt, Addr daddr)
Handle read for a single timer.
Timer(std::string __name, A9GlobalTimer *parent, int int_num)
void serialize(CheckpointOut &cp) const override
Serialize an object.
EventWrapper< Timer, &Timer::counterAtCmpVal > cmpValEvent
EndBitUnion(CTRL) protected A9GlobalTimer * parent
Pointer to parent class.
const uint32_t intNum
Number of interrupt to cause/clear.
Timer global_timer
Timer that does the actual work.
const Params * params() const
void counterAtCmpVal()
Called when the counter reaches the comparator.
void restartCounter()
Restart the counter ticking.
Bitfield< 15, 8 > prescalar
Bitfield< 3 > autoIncrement
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
void write(PacketPtr pkt, Addr daddr)
Handle write for a single timer.
uint64_t getTimeCounterFromTicks(Tick ticks)
Convert a number of ticks into the time counter format.
BaseGic * gic
Pointer to the GIC for causing an interrupt.
BitUnion32(CTRL) Bitfield< 0 > enable
void serialize(CheckpointOut &cp) const override
Serialize an object.
const SimObjectParams * _params
Cached copy of the object parameters.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
CTRL control
Control register as specified above.
std::ostream CheckpointOut
bool rawInt
If timer has caused an interrupt.
bool pendingInt
If an interrupt is currently pending.
EndBitUnion(UserDescFlags) struct UserDesc32
A9GlobalTimer(Params *p)
The constructor for RealView just registers itself with the MMU.
Generated on Wed Sep 30 2020 14:02:10 for gem5 by doxygen 1.8.17