simple_mem.cc (11193:564e2e7e86f4) | simple_mem.cc (11284:b3926db25371) |
---|---|
1/* 2 * Copyright (c) 2010-2013, 2015 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 --- 59 unchanged lines hidden (view full) --- 68 port.sendRangeChange(); 69 } 70} 71 72Tick 73SimpleMemory::recvAtomic(PacketPtr pkt) 74{ 75 access(pkt); | 1/* 2 * Copyright (c) 2010-2013, 2015 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 --- 59 unchanged lines hidden (view full) --- 68 port.sendRangeChange(); 69 } 70} 71 72Tick 73SimpleMemory::recvAtomic(PacketPtr pkt) 74{ 75 access(pkt); |
76 return pkt->memInhibitAsserted() ? 0 : getLatency(); | 76 return pkt->cacheResponding() ? 0 : getLatency(); |
77} 78 79void 80SimpleMemory::recvFunctional(PacketPtr pkt) 81{ 82 pkt->pushLabel(name()); 83 84 functionalAccess(pkt); --- 7 unchanged lines hidden (view full) --- 92 } 93 94 pkt->popLabel(); 95} 96 97bool 98SimpleMemory::recvTimingReq(PacketPtr pkt) 99{ | 77} 78 79void 80SimpleMemory::recvFunctional(PacketPtr pkt) 81{ 82 pkt->pushLabel(name()); 83 84 functionalAccess(pkt); --- 7 unchanged lines hidden (view full) --- 92 } 93 94 pkt->popLabel(); 95} 96 97bool 98SimpleMemory::recvTimingReq(PacketPtr pkt) 99{ |
100 // sink inhibited packets without further action 101 if (pkt->memInhibitAsserted()) { | 100 // if a cache is responding, sink the packet without further action 101 if (pkt->cacheResponding()) { |
102 pendingDelete.reset(pkt); 103 return true; 104 } 105 106 // we should not get a new request after committing to retry the 107 // current one, but unfortunately the CPU violates this rule, so 108 // simply ignore it for now 109 if (retryReq) --- 187 unchanged lines hidden --- | 102 pendingDelete.reset(pkt); 103 return true; 104 } 105 106 // we should not get a new request after committing to retry the 107 // current one, but unfortunately the CPU violates this rule, so 108 // simply ignore it for now 109 if (retryReq) --- 187 unchanged lines hidden --- |