simple_mem.cc (9342:6fec8f26e56d) simple_mem.cc (9349:844f9e724343)
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

--- 80 unchanged lines hidden (view full) ---

89SimpleMemory::doFunctionalAccess(PacketPtr pkt)
90{
91 functionalAccess(pkt);
92}
93
94bool
95SimpleMemory::recvTimingReq(PacketPtr pkt)
96{
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

--- 80 unchanged lines hidden (view full) ---

89SimpleMemory::doFunctionalAccess(PacketPtr pkt)
90{
91 functionalAccess(pkt);
92}
93
94bool
95SimpleMemory::recvTimingReq(PacketPtr pkt)
96{
97 /// @todo temporary hack to deal with memory corruption issues until
98 /// 4-phase transactions are complete
99 for (int x = 0; x < pendingDelete.size(); x++)
100 delete pendingDelete[x];
101 pendingDelete.clear();
102
97 if (pkt->memInhibitAsserted()) {
98 // snooper will supply based on copy of packet
99 // still target's responsibility to delete packet
103 if (pkt->memInhibitAsserted()) {
104 // snooper will supply based on copy of packet
105 // still target's responsibility to delete packet
100 delete pkt;
106 pendingDelete.push_back(pkt);
101 return true;
102 }
103
104 // we should never get a new request after committing to retry the
105 // current one, the bus violates the rule as it simply sends a
106 // retry to the next one waiting on the retry list, so simply
107 // ignore it
108 if (retryReq)

--- 127 unchanged lines hidden ---
107 return true;
108 }
109
110 // we should never get a new request after committing to retry the
111 // current one, the bus violates the rule as it simply sends a
112 // retry to the next one waiting on the retry list, so simply
113 // ignore it
114 if (retryReq)

--- 127 unchanged lines hidden ---