physical.hh (4467:cb5715e021ca) physical.hh (4475:fb185cc1c845)
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;

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

59
60 virtual Tick recvAtomic(PacketPtr pkt);
61
62 virtual void recvFunctional(PacketPtr pkt);
63
64 virtual void recvStatusChange(Status status);
65
66 virtual void getDeviceAddressRanges(AddrRangeList &resp,
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;

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

59
60 virtual Tick recvAtomic(PacketPtr pkt);
61
62 virtual void recvFunctional(PacketPtr pkt);
63
64 virtual void recvStatusChange(Status status);
65
66 virtual void getDeviceAddressRanges(AddrRangeList &resp,
67 AddrRangeList &snoop);
67 bool &snoop);
68
69 virtual int deviceBlockSize();
70 };
71
72 int numPorts;
73
74
75 private:

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

164
165 public:
166 const Params *params() const { return _params; }
167 PhysicalMemory(Params *p);
168 virtual ~PhysicalMemory();
169
170 public:
171 int deviceBlockSize();
68
69 virtual int deviceBlockSize();
70 };
71
72 int numPorts;
73
74
75 private:

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

164
165 public:
166 const Params *params() const { return _params; }
167 PhysicalMemory(Params *p);
168 virtual ~PhysicalMemory();
169
170 public:
171 int deviceBlockSize();
172 void getAddressRanges(AddrRangeList &resp, AddrRangeList &snoop);
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 void doFunctionalAccess(PacketPtr pkt);
179 virtual Tick calculateLatency(PacketPtr pkt);
180 void recvStatusChange(Port::Status status);
181
182 public:
183 virtual void serialize(std::ostream &os);
184 virtual void unserialize(Checkpoint *cp, const std::string &section);
185
186};
187
188#endif //__PHYSICAL_MEMORY_HH__
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 void doFunctionalAccess(PacketPtr pkt);
179 virtual Tick calculateLatency(PacketPtr pkt);
180 void recvStatusChange(Port::Status status);
181
182 public:
183 virtual void serialize(std::ostream &os);
184 virtual void unserialize(Checkpoint *cp, const std::string &section);
185
186};
187
188#endif //__PHYSICAL_MEMORY_HH__