76a77
> Tick lat;
80,81c81,82
< CpuPort(const std::string &_name, TimingSimpleCPU *_cpu)
< : Port(_name), cpu(_cpu)
---
> CpuPort(const std::string &_name, TimingSimpleCPU *_cpu, Tick _lat)
> : Port(_name), cpu(_cpu), lat(_lat)
94a96,107
>
> struct TickEvent : public Event
> {
> Packet *pkt;
> TimingSimpleCPU *cpu;
>
> TickEvent(TimingSimpleCPU *_cpu)
> :Event(&mainEventQueue), cpu(_cpu) {}
> const char *description() { return "Timing CPU clock event"; }
> void schedule(Packet *_pkt, Tick t);
> };
>
101,102c114,115
< IcachePort(TimingSimpleCPU *_cpu)
< : CpuPort(_cpu->name() + "-iport", _cpu)
---
> IcachePort(TimingSimpleCPU *_cpu, Tick _lat)
> : CpuPort(_cpu->name() + "-iport", _cpu, _lat), tickEvent(_cpu)
109a123,134
>
> struct ITickEvent : public TickEvent
> {
>
> ITickEvent(TimingSimpleCPU *_cpu)
> : TickEvent(_cpu) {}
> void process();
> const char *description() { return "Timing CPU clock event"; }
> };
>
> ITickEvent tickEvent;
>
116,117c141,142
< DcachePort(TimingSimpleCPU *_cpu)
< : CpuPort(_cpu->name() + "-dport", _cpu)
---
> DcachePort(TimingSimpleCPU *_cpu, Tick _lat)
> : CpuPort(_cpu->name() + "-dport", _cpu, _lat), tickEvent(_cpu)
124a150,160
>
> struct DTickEvent : public TickEvent
> {
> DTickEvent(TimingSimpleCPU *_cpu)
> : TickEvent(_cpu) {}
> void process();
> const char *description() { return "Timing CPU clock event"; }
> };
>
> DTickEvent tickEvent;
>