abstract_mem.cc (10583:d1e1e8588881) | abstract_mem.cc (10883:9294c4a60251) |
---|---|
1/* 2 * Copyright (c) 2010-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 --- 308 unchanged lines hidden (view full) --- 317 318#define TRACE_PACKET(A) 319 320#endif 321 322void 323AbstractMemory::access(PacketPtr pkt) 324{ | 1/* 2 * Copyright (c) 2010-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 --- 308 unchanged lines hidden (view full) --- 317 318#define TRACE_PACKET(A) 319 320#endif 321 322void 323AbstractMemory::access(PacketPtr pkt) 324{ |
325 assert(AddrRange(pkt->getAddr(), 326 pkt->getAddr() + pkt->getSize() - 1).isSubset(range)); 327 | |
328 if (pkt->memInhibitAsserted()) { 329 DPRINTF(MemoryAccess, "mem inhibited on 0x%x: not responding\n", 330 pkt->getAddr()); 331 return; 332 } 333 | 325 if (pkt->memInhibitAsserted()) { 326 DPRINTF(MemoryAccess, "mem inhibited on 0x%x: not responding\n", 327 pkt->getAddr()); 328 return; 329 } 330 |
331 if (pkt->cmd == MemCmd::CleanEvict) { 332 DPRINTF(MemoryAccess, "CleanEvict on 0x%x: not responding\n", 333 pkt->getAddr()); 334 return; 335 } 336 337 assert(AddrRange(pkt->getAddr(), 338 pkt->getAddr() + (pkt->getSize() - 1)).isSubset(range)); 339 |
|
334 uint8_t *hostAddr = pmemAddr + pkt->getAddr() - range.start(); 335 336 if (pkt->cmd == MemCmd::SwapReq) { 337 std::vector<uint8_t> overwrite_val(pkt->getSize()); 338 uint64_t condition_val64; 339 uint32_t condition_val32; 340 341 if (!pmemAddr) --- 100 unchanged lines hidden --- | 340 uint8_t *hostAddr = pmemAddr + pkt->getAddr() - range.start(); 341 342 if (pkt->cmd == MemCmd::SwapReq) { 343 std::vector<uint8_t> overwrite_val(pkt->getSize()); 344 uint64_t condition_val64; 345 uint32_t condition_val32; 346 347 if (!pmemAddr) --- 100 unchanged lines hidden --- |