queued.hh (13551:f352df8e2863) queued.hh (13667:e3ae3619b9ab)
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

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

84 {
85 return priority < that.priority;
86 }
87 bool operator<=(const DeferredPacket& that) const
88 {
89 return !(*this > that);
90 }
91 };
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

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

84 {
85 return priority < that.priority;
86 }
87 bool operator<=(const DeferredPacket& that) const
88 {
89 return !(*this > that);
90 }
91 };
92 using AddrPriority = std::pair<Addr, int32_t>;
93
94 std::list<DeferredPacket> pfq;
95
96 // PARAMETERS
97
98 /** Maximum size of the prefetch queue */
99 const unsigned queueSize;
100

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

121 // STATS
122 Stats::Scalar pfIdentified;
123 Stats::Scalar pfBufferHit;
124 Stats::Scalar pfInCache;
125 Stats::Scalar pfRemovedFull;
126 Stats::Scalar pfSpanPage;
127
128 public:
92
93 std::list<DeferredPacket> pfq;
94
95 // PARAMETERS
96
97 /** Maximum size of the prefetch queue */
98 const unsigned queueSize;
99

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

120 // STATS
121 Stats::Scalar pfIdentified;
122 Stats::Scalar pfBufferHit;
123 Stats::Scalar pfInCache;
124 Stats::Scalar pfRemovedFull;
125 Stats::Scalar pfSpanPage;
126
127 public:
128 using AddrPriority = std::pair<Addr, int32_t>;
129
129 QueuedPrefetcher(const QueuedPrefetcherParams *p);
130 virtual ~QueuedPrefetcher();
131
132 void notify(const PacketPtr &pkt, const PrefetchInfo &pfi) override;
133
134 void insert(const PacketPtr &pkt, PrefetchInfo &new_pfi, int32_t priority);
135
136 virtual void calculatePrefetch(const PrefetchInfo &pfi,

--- 13 unchanged lines hidden ---
130 QueuedPrefetcher(const QueuedPrefetcherParams *p);
131 virtual ~QueuedPrefetcher();
132
133 void notify(const PacketPtr &pkt, const PrefetchInfo &pfi) override;
134
135 void insert(const PacketPtr &pkt, PrefetchInfo &new_pfi, int32_t priority);
136
137 virtual void calculatePrefetch(const PrefetchInfo &pfi,

--- 13 unchanged lines hidden ---