physical.hh (4918:3214e3694fb2) | physical.hh (5275:5279ced1dd8b) |
---|---|
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; --- 135 unchanged lines hidden (view full) --- 144 } 145 146 uint8_t *pmemAddr; 147 int pagePtr; 148 Tick lat; 149 std::vector<MemoryPort*> ports; 150 typedef std::vector<MemoryPort*>::iterator PortIterator; 151 | 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; --- 135 unchanged lines hidden (view full) --- 144 } 145 146 uint8_t *pmemAddr; 147 int pagePtr; 148 Tick lat; 149 std::vector<MemoryPort*> ports; 150 typedef std::vector<MemoryPort*>::iterator PortIterator; 151 |
152 uint64_t cachedSize; 153 uint64_t cachedStart; |
|
152 public: 153 Addr new_page(); | 154 public: 155 Addr new_page(); |
154 uint64_t size() { return params()->range.size(); } 155 uint64_t start() { return params()->range.start; } | 156 uint64_t size() { return cachedSize; } 157 uint64_t start() { return cachedStart; } |
156 157 public: 158 typedef PhysicalMemoryParams Params; 159 PhysicalMemory(const Params *p); 160 virtual ~PhysicalMemory(); 161 162 const Params * 163 params() const --- 24 unchanged lines hidden --- | 158 159 public: 160 typedef PhysicalMemoryParams Params; 161 PhysicalMemory(const Params *p); 162 virtual ~PhysicalMemory(); 163 164 const Params * 165 params() const --- 24 unchanged lines hidden --- |