abstract_mem.hh (9098:7909b6cf7188) abstract_mem.hh (9235:5aa4896ed55a)
1/*
2 * Copyright (c) 2012 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

63 * timing information. It is a MemObject since any subclass must have
64 * at least one slave port.
65 */
66class AbstractMemory : public MemObject
67{
68 protected:
69
70 // Address range of this memory
1/*
2 * Copyright (c) 2012 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

63 * timing information. It is a MemObject since any subclass must have
64 * at least one slave port.
65 */
66class AbstractMemory : public MemObject
67{
68 protected:
69
70 // Address range of this memory
71 Range<Addr> range;
71 AddrRange range;
72
73 // Pointer to host memory used to implement this memory
74 uint8_t* pmemAddr;
75
76 // Enable specific memories to be reported to the configuration table
77 bool confTableReported;
78
79 // Should the memory appear in the global address map

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

204 return dynamic_cast<const Params *>(_params);
205 }
206
207 /**
208 * Get the address range
209 *
210 * @return a single contigous address range
211 */
72
73 // Pointer to host memory used to implement this memory
74 uint8_t* pmemAddr;
75
76 // Enable specific memories to be reported to the configuration table
77 bool confTableReported;
78
79 // Should the memory appear in the global address map

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

204 return dynamic_cast<const Params *>(_params);
205 }
206
207 /**
208 * Get the address range
209 *
210 * @return a single contigous address range
211 */
212 Range<Addr> getAddrRange() const;
212 AddrRange getAddrRange() const;
213
214 /**
215 * Get the memory size.
216 *
217 * @return the size of the memory
218 */
219 uint64_t size() const { return range.size(); }
220

--- 53 unchanged lines hidden ---
213
214 /**
215 * Get the memory size.
216 *
217 * @return the size of the memory
218 */
219 uint64_t size() const { return range.size(); }
220

--- 53 unchanged lines hidden ---