timing.hh (8737:770ccf3af571) timing.hh (8850:ed91b534ed04)
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;

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

226 IcachePort icachePort;
227 DcachePort dcachePort;
228
229 PacketPtr ifetch_pkt;
230 PacketPtr dcache_pkt;
231
232 Tick previousTick;
233
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;

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

226 IcachePort icachePort;
227 DcachePort dcachePort;
228
229 PacketPtr ifetch_pkt;
230 PacketPtr dcache_pkt;
231
232 Tick previousTick;
233
234 public:
234 protected:
235
235
236 virtual Port *getPort(const std::string &if_name, int idx = -1);
236 /** Return a reference to the data port. */
237 virtual CpuPort &getDataPort() { return dcachePort; }
237
238
239 /** Return a reference to the instruction port. */
240 virtual CpuPort &getInstPort() { return icachePort; }
241
242 public:
243
238 virtual void serialize(std::ostream &os);
239 virtual void unserialize(Checkpoint *cp, const std::string &section);
240
241 virtual unsigned int drain(Event *drain_event);
242 virtual void resume();
243
244 void switchOut();
245 void takeOverFrom(BaseCPU *oldCPU);

--- 44 unchanged lines hidden ---
244 virtual void serialize(std::ostream &os);
245 virtual void unserialize(Checkpoint *cp, const std::string &section);
246
247 virtual unsigned int drain(Event *drain_event);
248 virtual void resume();
249
250 void switchOut();
251 void takeOverFrom(BaseCPU *oldCPU);

--- 44 unchanged lines hidden ---