timing.hh (8948:e95ee70f876c) timing.hh (8975:7f36d4436074)
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 142 unchanged lines hidden (view full) ---

151 : CpuPort(_name, _cpu), cpu(_cpu), retryEvent(this)
152 { }
153
154 protected:
155
156 /**
157 * Snooping a coherence request, do nothing.
158 */
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 142 unchanged lines hidden (view full) ---

151 : CpuPort(_name, _cpu), cpu(_cpu), retryEvent(this)
152 { }
153
154 protected:
155
156 /**
157 * Snooping a coherence request, do nothing.
158 */
159 virtual bool recvTimingSnoop(PacketPtr pkt) { return true; }
159 virtual void recvTimingSnoopReq(PacketPtr pkt) { }
160
161 TimingSimpleCPU* cpu;
162
163 struct TickEvent : public Event
164 {
165 PacketPtr pkt;
166 TimingSimpleCPU *cpu;
167 CpuPort *port;

--- 12 unchanged lines hidden (view full) ---

180
181 IcachePort(TimingSimpleCPU *_cpu)
182 : TimingCPUPort(_cpu->name() + "-iport", _cpu),
183 tickEvent(_cpu)
184 { }
185
186 protected:
187
160
161 TimingSimpleCPU* cpu;
162
163 struct TickEvent : public Event
164 {
165 PacketPtr pkt;
166 TimingSimpleCPU *cpu;
167 CpuPort *port;

--- 12 unchanged lines hidden (view full) ---

180
181 IcachePort(TimingSimpleCPU *_cpu)
182 : TimingCPUPort(_cpu->name() + "-iport", _cpu),
183 tickEvent(_cpu)
184 { }
185
186 protected:
187
188 virtual bool recvTiming(PacketPtr pkt);
188 virtual bool recvTimingResp(PacketPtr pkt);
189
190 virtual void recvRetry();
191
192 struct ITickEvent : public TickEvent
193 {
194
195 ITickEvent(TimingSimpleCPU *_cpu)
196 : TickEvent(_cpu) {}

--- 10 unchanged lines hidden (view full) ---

207 public:
208
209 DcachePort(TimingSimpleCPU *_cpu)
210 : TimingCPUPort(_cpu->name() + "-dport", _cpu), tickEvent(_cpu)
211 { }
212
213 protected:
214
189
190 virtual void recvRetry();
191
192 struct ITickEvent : public TickEvent
193 {
194
195 ITickEvent(TimingSimpleCPU *_cpu)
196 : TickEvent(_cpu) {}

--- 10 unchanged lines hidden (view full) ---

207 public:
208
209 DcachePort(TimingSimpleCPU *_cpu)
210 : TimingCPUPort(_cpu->name() + "-dport", _cpu), tickEvent(_cpu)
211 { }
212
213 protected:
214
215 virtual bool recvTiming(PacketPtr pkt);
215 virtual bool recvTimingResp(PacketPtr pkt);
216
217 virtual void recvRetry();
218
219 struct DTickEvent : public TickEvent
220 {
221 DTickEvent(TimingSimpleCPU *_cpu)
222 : TickEvent(_cpu) {}
223 void process();

--- 77 unchanged lines hidden ---
216
217 virtual void recvRetry();
218
219 struct DTickEvent : public TickEvent
220 {
221 DTickEvent(TimingSimpleCPU *_cpu)
222 : TickEvent(_cpu) {}
223 void process();

--- 77 unchanged lines hidden ---