physical.hh (6107:52a5e1c63380) physical.hh (6227:a17798f2a52c)
1/*
2 * Copyright (c) 2001-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;

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

65
66 virtual void recvFunctional(PacketPtr pkt);
67
68 virtual void recvStatusChange(Status status);
69
70 virtual void getDeviceAddressRanges(AddrRangeList &resp,
71 bool &snoop);
72
1/*
2 * Copyright (c) 2001-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;

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

65
66 virtual void recvFunctional(PacketPtr pkt);
67
68 virtual void recvStatusChange(Status status);
69
70 virtual void getDeviceAddressRanges(AddrRangeList &resp,
71 bool &snoop);
72
73 virtual int deviceBlockSize();
73 virtual unsigned deviceBlockSize() const;
74 };
75
76 int numPorts;
77
78
79 private:
80 // prevent copying of a MainMemory object
81 PhysicalMemory(const PhysicalMemory &specmem);

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

163
164 const Params *
165 params() const
166 {
167 return dynamic_cast<const Params *>(_params);
168 }
169
170 public:
74 };
75
76 int numPorts;
77
78
79 private:
80 // prevent copying of a MainMemory object
81 PhysicalMemory(const PhysicalMemory &specmem);

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

163
164 const Params *
165 params() const
166 {
167 return dynamic_cast<const Params *>(_params);
168 }
169
170 public:
171 int deviceBlockSize();
171 unsigned deviceBlockSize() const;
172 void getAddressRanges(AddrRangeList &resp, bool &snoop);
173 virtual Port *getPort(const std::string &if_name, int idx = -1);
174 void virtual init();
175 unsigned int drain(Event *de);
176
177 protected:
178 Tick doAtomicAccess(PacketPtr pkt);
179 void doFunctionalAccess(PacketPtr pkt);
180 virtual Tick calculateLatency(PacketPtr pkt);
181 void recvStatusChange(Port::Status status);
182
183 public:
184 virtual void serialize(std::ostream &os);
185 virtual void unserialize(Checkpoint *cp, const std::string &section);
186
187};
188
189#endif //__PHYSICAL_MEMORY_HH__
172 void getAddressRanges(AddrRangeList &resp, bool &snoop);
173 virtual Port *getPort(const std::string &if_name, int idx = -1);
174 void virtual init();
175 unsigned int drain(Event *de);
176
177 protected:
178 Tick doAtomicAccess(PacketPtr pkt);
179 void doFunctionalAccess(PacketPtr pkt);
180 virtual Tick calculateLatency(PacketPtr pkt);
181 void recvStatusChange(Port::Status status);
182
183 public:
184 virtual void serialize(std::ostream &os);
185 virtual void unserialize(Checkpoint *cp, const std::string &section);
186
187};
188
189#endif //__PHYSICAL_MEMORY_HH__