write_queue.cc (11375:f98df9231cdd) | write_queue.cc (11453:dd9763792521) |
---|---|
1/* 2 * Copyright (c) 2012-2013, 2015-2016 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 --- 61 unchanged lines hidden (view full) --- 70 71 allocated += 1; 72 return entry; 73} 74 75void 76WriteQueue::markInService(WriteQueueEntry *entry) 77{ | 1/* 2 * Copyright (c) 2012-2013, 2015-2016 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 --- 61 unchanged lines hidden (view full) --- 70 71 allocated += 1; 72 return entry; 73} 74 75void 76WriteQueue::markInService(WriteQueueEntry *entry) 77{ |
78 if (!entry->isUncacheable()) { 79 // a normal eviction, such as a writeback or a clean evict, no 80 // more to do as we are done from the perspective of this 81 // cache 82 entry->popTarget(); 83 deallocate(entry); 84 } else { 85 // uncacheable write, and we will eventually receive a 86 // response 87 entry->markInService(); 88 readyList.erase(entry->readyIter); 89 _numInService += 1; 90 } | 78 // for a normal eviction, such as a writeback or a clean evict, 79 // there is no more to do as we are done from the perspective of 80 // this cache, and for uncacheable write we do not need the entry 81 // as part of the response handling 82 entry->popTarget(); 83 deallocate(entry); |
91} | 84} |