base.hh (10360:919c02740209) | base.hh (10466:73b7549d979e) |
---|---|
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 --- 104 unchanged lines hidden (view full) --- 113 const bool onPrefetch; 114 115 /** System we belong to */ 116 System* system; 117 118 /** Request id for prefetches */ 119 MasterID masterId; 120 | 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 --- 104 unchanged lines hidden (view full) --- 113 const bool onPrefetch; 114 115 /** System we belong to */ 116 System* system; 117 118 /** Request id for prefetches */ 119 MasterID masterId; 120 |
121 const Addr pageBytes; 122 |
|
121 public: 122 123 Stats::Scalar pfIdentified; 124 Stats::Scalar pfMSHRHit; 125 Stats::Scalar pfCacheHit; 126 Stats::Scalar pfBufferHit; 127 Stats::Scalar pfRemovedFull; 128 Stats::Scalar pfRemovedMSHR; --- 38 unchanged lines hidden (view full) --- 167 std::list<Addr> &addresses, 168 std::list<Cycles> &delays) = 0; 169 170 std::list<DeferredPacket>::iterator inPrefetch(Addr address, bool is_secure); 171 172 /** 173 * Utility function: are addresses a and b on the same VM page? 174 */ | 123 public: 124 125 Stats::Scalar pfIdentified; 126 Stats::Scalar pfMSHRHit; 127 Stats::Scalar pfCacheHit; 128 Stats::Scalar pfBufferHit; 129 Stats::Scalar pfRemovedFull; 130 Stats::Scalar pfRemovedMSHR; --- 38 unchanged lines hidden (view full) --- 169 std::list<Addr> &addresses, 170 std::list<Cycles> &delays) = 0; 171 172 std::list<DeferredPacket>::iterator inPrefetch(Addr address, bool is_secure); 173 174 /** 175 * Utility function: are addresses a and b on the same VM page? 176 */ |
175 bool samePage(Addr a, Addr b); | 177 bool samePage(Addr a, Addr b) const; |
176 public: 177 const Params* 178 params() const 179 { 180 return dynamic_cast<const Params *>(_params); 181 } 182 183}; 184#endif //__MEM_CACHE_PREFETCH_BASE_PREFETCHER_HH__ | 178 public: 179 const Params* 180 params() const 181 { 182 return dynamic_cast<const Params *>(_params); 183 } 184 185}; 186#endif //__MEM_CACHE_PREFETCH_BASE_PREFETCHER_HH__ |