Deleted Added
sdiff udiff text old ( 10583:d1e1e8588881 ) new ( 10883:9294c4a60251 )
full compact
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
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 ---