snoop_filter.hh (11135:9d09dab39689) | snoop_filter.hh (11168:f98eb2da15a4) |
---|---|
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 --- 31 unchanged lines hidden (view full) --- 40/** 41 * @file 42 * Definition of a snoop filter. 43 */ 44 45#ifndef __MEM_SNOOP_FILTER_HH__ 46#define __MEM_SNOOP_FILTER_HH__ 47 | 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 --- 31 unchanged lines hidden (view full) --- 40/** 41 * @file 42 * Definition of a snoop filter. 43 */ 44 45#ifndef __MEM_SNOOP_FILTER_HH__ 46#define __MEM_SNOOP_FILTER_HH__ 47 |
48#include <unordered_map> |
|
48#include <utility> 49 | 49#include <utility> 50 |
50#include "base/hashmap.hh" | |
51#include "mem/packet.hh" 52#include "mem/port.hh" 53#include "mem/qport.hh" 54#include "params/SnoopFilter.hh" 55#include "sim/sim_object.hh" 56#include "sim/system.hh" 57 58/** --- 154 unchanged lines hidden (view full) --- 213 */ 214 struct SnoopItem { 215 SnoopMask requested; 216 SnoopMask holder; 217 }; 218 /** 219 * HashMap of SnoopItems indexed by line address 220 */ | 51#include "mem/packet.hh" 52#include "mem/port.hh" 53#include "mem/qport.hh" 54#include "params/SnoopFilter.hh" 55#include "sim/sim_object.hh" 56#include "sim/system.hh" 57 58/** --- 154 unchanged lines hidden (view full) --- 213 */ 214 struct SnoopItem { 215 SnoopMask requested; 216 SnoopMask holder; 217 }; 218 /** 219 * HashMap of SnoopItems indexed by line address 220 */ |
221 typedef m5::hash_map<Addr, SnoopItem> SnoopFilterCache; | 221 typedef std::unordered_map<Addr, SnoopItem> SnoopFilterCache; |
222 223 /** 224 * Simple factory methods for standard return values. 225 */ 226 std::pair<SnoopList, Cycles> snoopAll(Cycles latency) const 227 { 228 return std::make_pair(slavePorts, latency); 229 } --- 85 unchanged lines hidden --- | 222 223 /** 224 * Simple factory methods for standard return values. 225 */ 226 std::pair<SnoopList, Cycles> snoopAll(Cycles latency) const 227 { 228 return std::make_pair(slavePorts, latency); 229 } --- 85 unchanged lines hidden --- |