queued.cc (11439:d0368996f1e0) queued.cc (11484:08b33c52a16d)
1/*
2 * Copyright (c) 2014-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

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

112
113PacketPtr
114QueuedPrefetcher::getPacket()
115{
116 DPRINTF(HWPrefetch, "Requesting a prefetch to issue.\n");
117
118 if (pfq.empty()) {
119 DPRINTF(HWPrefetch, "No hardware prefetches available.\n");
1/*
2 * Copyright (c) 2014-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

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

112
113PacketPtr
114QueuedPrefetcher::getPacket()
115{
116 DPRINTF(HWPrefetch, "Requesting a prefetch to issue.\n");
117
118 if (pfq.empty()) {
119 DPRINTF(HWPrefetch, "No hardware prefetches available.\n");
120 return NULL;
120 return nullptr;
121 }
122
123 PacketPtr pkt = pfq.begin()->pkt;
124 pfq.pop_front();
125
126 pfIssued++;
121 }
122
123 PacketPtr pkt = pfq.begin()->pkt;
124 pfq.pop_front();
125
126 pfIssued++;
127 assert(pkt != NULL);
127 assert(pkt != nullptr);
128 DPRINTF(HWPrefetch, "Generating prefetch for %#x.\n", pkt->getAddr());
129 return pkt;
130}
131
132std::list<QueuedPrefetcher::DeferredPacket>::const_iterator
133QueuedPrefetcher::inPrefetch(Addr address, bool is_secure) const
134{
135 for (const_iterator dp = pfq.begin(); dp != pfq.end(); dp++) {

--- 143 unchanged lines hidden ---
128 DPRINTF(HWPrefetch, "Generating prefetch for %#x.\n", pkt->getAddr());
129 return pkt;
130}
131
132std::list<QueuedPrefetcher::DeferredPacket>::const_iterator
133QueuedPrefetcher::inPrefetch(Addr address, bool is_secure) const
134{
135 for (const_iterator dp = pfq.begin(); dp != pfq.end(); dp++) {

--- 143 unchanged lines hidden ---