Deleted Added
sdiff udiff text old ( 10399:0644819fc32f ) new ( 10403:b3231fc8ae9d )
full compact
1/*
2 * Copyright (c) 2013 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

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

183 return std::make_pair(slave_ports, latency);
184 }
185 std::pair<SnoopList, Cycles> snoopDown(Cycles latency) const
186 {
187 SnoopList empty;
188 return std::make_pair(empty , latency);
189 }
190
191 protected:
192 typedef uint64_t SnoopMask;
193 /**
194 * Per cache line item tracking a bitmask of SlavePorts who have an
195 * outstanding request to this line (requested) or already share a cache line
196 * with this address (holder).
197 */
198 struct SnoopItem {

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

222 /** Simple hash set of cached addresses. */
223 m5::hash_map<Addr, SnoopItem> cachedLocations;
224 /** List of all attached slave ports. */
225 SnoopList slavePorts;
226 /** Cache line size. */
227 const unsigned linesize;
228 /** Latency for doing a lookup in the filter */
229 const Cycles lookupLatency;
230};
231
232inline SnoopFilter::SnoopMask
233SnoopFilter::portToMask(const SlavePort& port) const
234{
235 unsigned id = (unsigned)port.getId();
236 assert(id != (unsigned)InvalidPortID);
237 assert((int)id < 8 * sizeof(SnoopMask));

--- 23 unchanged lines hidden ---