physical.hh (2665:a124942bacb8) physical.hh (2738:5d7a31c7fa29)
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;

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

103
104 public:
105 PhysicalMemory(const std::string &n, Tick latency);
106 virtual ~PhysicalMemory();
107
108 public:
109 int deviceBlockSize();
110 void getAddressRanges(AddrRangeList &resp, AddrRangeList &snoop);
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;

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

103
104 public:
105 PhysicalMemory(const std::string &n, Tick latency);
106 virtual ~PhysicalMemory();
107
108 public:
109 int deviceBlockSize();
110 void getAddressRanges(AddrRangeList &resp, AddrRangeList &snoop);
111 virtual Port *getPort(const std::string &if_name);
111 virtual Port *getPort(const std::string &if_name, int idx = -1);
112 void virtual init();
113
114 // fast back-door memory access for vtophys(), remote gdb, etc.
115 // uint64_t phys_read_qword(Addr addr) const;
116 private:
117 bool doTimingAccess(Packet *pkt, MemoryPort *memoryPort);
118 Tick doAtomicAccess(Packet *pkt);
119 void doFunctionalAccess(Packet *pkt);
120
121 void recvStatusChange(Port::Status status);
122
123 public:
124 virtual void serialize(std::ostream &os);
125 virtual void unserialize(Checkpoint *cp, const std::string &section);
126
127};
128
129#endif //__PHYSICAL_MEMORY_HH__
112 void virtual init();
113
114 // fast back-door memory access for vtophys(), remote gdb, etc.
115 // uint64_t phys_read_qword(Addr addr) const;
116 private:
117 bool doTimingAccess(Packet *pkt, MemoryPort *memoryPort);
118 Tick doAtomicAccess(Packet *pkt);
119 void doFunctionalAccess(Packet *pkt);
120
121 void recvStatusChange(Port::Status status);
122
123 public:
124 virtual void serialize(std::ostream &os);
125 virtual void unserialize(Checkpoint *cp, const std::string &section);
126
127};
128
129#endif //__PHYSICAL_MEMORY_HH__