87a88,95
>
> void
> TimingSimpleCPU::CpuPort::TickEvent::schedule(Packet *_pkt, Tick t)
> {
> pkt = _pkt;
> Event::schedule(t);
> }
>
89c97
< : BaseSimpleCPU(p), icachePort(this), dcachePort(this)
---
> : BaseSimpleCPU(p), icachePort(this, p->clock), dcachePort(this, p->clock)
464a473,477
> void
> TimingSimpleCPU::IcachePort::ITickEvent::process()
> {
> cpu->completeIfetch(pkt);
> }
469c482,492
< cpu->completeIfetch(pkt);
---
> // These next few lines could be replaced with something faster
> // who knows what though
> Tick time = pkt->req->getTime();
> while (time < curTick)
> time += lat;
>
> if (time == curTick)
> cpu->completeIfetch(pkt);
> else
> tickEvent.schedule(pkt, time);
>
526c549,557
< cpu->completeDataAccess(pkt);
---
> Tick time = pkt->req->getTime();
> while (time < curTick)
> time += lat;
>
> if (time == curTick)
> cpu->completeDataAccess(pkt);
> else
> tickEvent.schedule(pkt, time);
>
530a562,567
> TimingSimpleCPU::DcachePort::DTickEvent::process()
> {
> cpu->completeDataAccess(pkt);
> }
>
> void