physical.cc (3349:fec4a86fa212) | physical.cc (3584:8c3cdb2c001c) |
---|---|
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; --- 177 unchanged lines hidden (view full) --- 186 } 187 188 return success; 189} 190 191void 192PhysicalMemory::doFunctionalAccess(PacketPtr pkt) 193{ | 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; --- 177 unchanged lines hidden (view full) --- 186 } 187 188 return success; 189} 190 191void 192PhysicalMemory::doFunctionalAccess(PacketPtr pkt) 193{ |
194 assert(pkt->getAddr() + pkt->getSize() <= params()->addrRange.size()); | 194 assert(pkt->getAddr() + pkt->getSize() > params()->addrRange.start && 195 pkt->getAddr() + pkt->getSize() <= params()->addrRange.start + 196 params()->addrRange.size()); |
195 196 if (pkt->isRead()) { 197 if (pkt->req->isLocked()) { 198 trackLoadLocked(pkt->req); 199 } 200 DPRINTF(MemoryAccess, "Performing Read of size %i on address 0x%x\n", 201 pkt->getSize(), pkt->getAddr()); 202 memcpy(pkt->getPtr<uint8_t>(), --- 236 unchanged lines hidden --- | 197 198 if (pkt->isRead()) { 199 if (pkt->req->isLocked()) { 200 trackLoadLocked(pkt->req); 201 } 202 DPRINTF(MemoryAccess, "Performing Read of size %i on address 0x%x\n", 203 pkt->getSize(), pkt->getAddr()); 204 memcpy(pkt->getPtr<uint8_t>(), --- 236 unchanged lines hidden --- |