physical.cc (12779:c1dc175bb9be) | physical.cc (12781:bfb560f980f6) |
---|---|
1/* 2 * Copyright (c) 2012, 2014, 2018 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 --- 264 unchanged lines hidden (view full) --- 273 274 return ranges; 275} 276 277void 278PhysicalMemory::access(PacketPtr pkt) 279{ 280 assert(pkt->isRequest()); | 1/* 2 * Copyright (c) 2012, 2014, 2018 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 --- 264 unchanged lines hidden (view full) --- 273 274 return ranges; 275} 276 277void 278PhysicalMemory::access(PacketPtr pkt) 279{ 280 assert(pkt->isRequest()); |
281 Addr addr = pkt->getAddr(); 282 const auto& m = addrMap.contains(addr); | 281 AddrRange addr_range = RangeSize(pkt->getAddr(), pkt->getSize()); 282 const auto& m = addrMap.contains(addr_range); |
283 assert(m != addrMap.end()); 284 m->second->access(pkt); 285} 286 287void 288PhysicalMemory::functionalAccess(PacketPtr pkt) 289{ 290 assert(pkt->isRequest()); | 283 assert(m != addrMap.end()); 284 m->second->access(pkt); 285} 286 287void 288PhysicalMemory::functionalAccess(PacketPtr pkt) 289{ 290 assert(pkt->isRequest()); |
291 Addr addr = pkt->getAddr(); 292 const auto& m = addrMap.contains(addr); | 291 AddrRange addr_range = RangeSize(pkt->getAddr(), pkt->getSize()); 292 const auto& m = addrMap.contains(addr_range); |
293 assert(m != addrMap.end()); 294 m->second->functionalAccess(pkt); 295} 296 297void 298PhysicalMemory::serialize(CheckpointOut &cp) const 299{ 300 // serialize all the locked addresses and their context ids --- 156 unchanged lines hidden --- | 293 assert(m != addrMap.end()); 294 m->second->functionalAccess(pkt); 295} 296 297void 298PhysicalMemory::serialize(CheckpointOut &cp) const 299{ 300 // serialize all the locked addresses and their context ids --- 156 unchanged lines hidden --- |