Lines Matching defs:Timer
45 #include "debug/Timer.hh"
57 Sp804::Timer::Timer(std::string __name, Sp804 *_parent, int int_num, Tick _clock)
71 DPRINTF(Timer, "Reading from DualTimer at offset: %#x\n", daddr);
73 if (daddr < Timer::Size)
75 else if ((daddr - Timer::Size) < Timer::Size)
76 timer1.read(pkt, daddr - Timer::Size);
85 Sp804::Timer::read(PacketPtr pkt, Addr daddr)
92 DPRINTF(Timer, "Event schedule for %d, clock=%d, prescale=%d\n",
97 DPRINTF(Timer, "-- returning counter at %d\n", time);
116 DPRINTF(Timer, "Reading %#x from Timer at offset: %#x\n",
126 DPRINTF(Timer, "Writing to DualTimer at offset: %#x\n", daddr);
128 if (daddr < Timer::Size)
130 else if ((daddr - Timer::Size) < Timer::Size)
131 timer1.write(pkt, daddr - Timer::Size);
139 Sp804::Timer::write(PacketPtr pkt, Addr daddr)
141 DPRINTF(Timer, "Writing %#x to Timer at offset: %#x\n",
162 DPRINTF(Timer, "Clearing interrupt\n");
176 Sp804::Timer::restartCounter(uint32_t val)
178 DPRINTF(Timer, "Resetting counter with value %#x\n", val);
189 DPRINTF(Timer, "-- Event was already schedule, de-scheduling\n");
193 DPRINTF(Timer, "-- Scheduling new event for: %d\n", curTick() + time);
197 Sp804::Timer::counterAtZero()
202 DPRINTF(Timer, "Counter reached zero\n");
209 DPRINTF(Timer, "-- Causing interrupt\n");
224 Sp804::Timer::serialize(CheckpointOut &cp) const
246 Sp804::Timer::unserialize(CheckpointIn &cp)