snoop_filter.cc (11131:22e739752f47) snoop_filter.cc (11132:fbd597034299)
1/*
2 * Copyright (c) 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

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

179
180 if (!filter_upward)
181 return snoopAll(lookupLatency);
182
183 Addr line_addr = cpkt->getBlockAddr(linesize);
184 auto sf_it = cachedLocations.find(line_addr);
185 bool is_hit = (sf_it != cachedLocations.end());
186
1/*
2 * Copyright (c) 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

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

179
180 if (!filter_upward)
181 return snoopAll(lookupLatency);
182
183 Addr line_addr = cpkt->getBlockAddr(linesize);
184 auto sf_it = cachedLocations.find(line_addr);
185 bool is_hit = (sf_it != cachedLocations.end());
186
187 panic_if(!is_hit && (cachedLocations.size() >= maxEntryCount),
188 "snoop filter exceeded capacity of %d cache blocks\n",
189 maxEntryCount);
190
187 // If the snoop filter has no entry and its an uncacheable
188 // request, do not create a new snoop filter entry, simply return
189 // a NULL portlist.
190 if (!is_hit && cpkt->req->isUncacheable())
191 return snoopDown(lookupLatency);
192
193 // If no hit in snoop filter create a new element and update iterator
194 if (!is_hit)

--- 199 unchanged lines hidden ---
191 // If the snoop filter has no entry and its an uncacheable
192 // request, do not create a new snoop filter entry, simply return
193 // a NULL portlist.
194 if (!is_hit && cpkt->req->isUncacheable())
195 return snoopDown(lookupLatency);
196
197 // If no hit in snoop filter create a new element and update iterator
198 if (!is_hit)

--- 199 unchanged lines hidden ---