abstract_mem.cc (9405:c0a0593510db) | abstract_mem.cc (9663:45df88079f04) |
---|---|
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 --- 349 unchanged lines hidden (view full) --- 358 memcpy(pkt->getPtr<uint8_t>(), hostAddr, pkt->getSize()); 359 TRACE_PACKET(pkt->req->isInstFetch() ? "IFetch" : "Read"); 360 numReads[pkt->req->masterId()]++; 361 bytesRead[pkt->req->masterId()] += pkt->getSize(); 362 if (pkt->req->isInstFetch()) 363 bytesInstRead[pkt->req->masterId()] += pkt->getSize(); 364 } else if (pkt->isWrite()) { 365 if (writeOK(pkt)) { | 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 --- 349 unchanged lines hidden (view full) --- 358 memcpy(pkt->getPtr<uint8_t>(), hostAddr, pkt->getSize()); 359 TRACE_PACKET(pkt->req->isInstFetch() ? "IFetch" : "Read"); 360 numReads[pkt->req->masterId()]++; 361 bytesRead[pkt->req->masterId()] += pkt->getSize(); 362 if (pkt->req->isInstFetch()) 363 bytesInstRead[pkt->req->masterId()] += pkt->getSize(); 364 } else if (pkt->isWrite()) { 365 if (writeOK(pkt)) { |
366 if (pmemAddr) | 366 if (pmemAddr) { |
367 memcpy(hostAddr, pkt->getPtr<uint8_t>(), pkt->getSize()); | 367 memcpy(hostAddr, pkt->getPtr<uint8_t>(), pkt->getSize()); |
368 DPRINTF(MemoryAccess, "%s wrote %x bytes to address %x\n", 369 __func__, pkt->getSize(), pkt->getAddr()); 370 } |
|
368 assert(!pkt->req->isInstFetch()); 369 TRACE_PACKET("Write"); 370 numWrites[pkt->req->masterId()]++; 371 bytesWritten[pkt->req->masterId()] += pkt->getSize(); 372 } 373 } else if (pkt->isInvalidate()) { 374 // no need to do anything 375 } else { --- 40 unchanged lines hidden --- | 371 assert(!pkt->req->isInstFetch()); 372 TRACE_PACKET("Write"); 373 numWrites[pkt->req->masterId()]++; 374 bytesWritten[pkt->req->masterId()] += pkt->getSize(); 375 } 376 } else if (pkt->isInvalidate()) { 377 // no need to do anything 378 } else { --- 40 unchanged lines hidden --- |