base.hh (13551:f352df8e2863) | base.hh (13624:3d8220c2d41d) |
---|---|
1/* 2 * Copyright (c) 2013-2014 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 --- 200 unchanged lines hidden (view full) --- 209 bool observeAccess(const PacketPtr &pkt) const; 210 211 /** Determine if address is in cache */ 212 bool inCache(Addr addr, bool is_secure) const; 213 214 /** Determine if address is in cache miss queue */ 215 bool inMissQueue(Addr addr, bool is_secure) const; 216 | 1/* 2 * Copyright (c) 2013-2014 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 --- 200 unchanged lines hidden (view full) --- 209 bool observeAccess(const PacketPtr &pkt) const; 210 211 /** Determine if address is in cache */ 212 bool inCache(Addr addr, bool is_secure) const; 213 214 /** Determine if address is in cache miss queue */ 215 bool inMissQueue(Addr addr, bool is_secure) const; 216 |
217 bool hasBeenPrefetched(Addr addr, bool is_secure) const; 218 |
|
217 /** Determine if addresses are on the same page */ 218 bool samePage(Addr a, Addr b) const; 219 /** Determine the address of the block in which a lays */ 220 Addr blockAddress(Addr a) const; 221 /** Determine the address of a at block granularity */ 222 Addr blockIndex(Addr a) const; 223 /** Determine the address of the page in which a lays */ 224 Addr pageAddress(Addr a) const; 225 /** Determine the page-offset of a */ 226 Addr pageOffset(Addr a) const; 227 /** Build the address of the i-th block inside the page */ 228 Addr pageIthBlockAddress(Addr page, uint32_t i) const; 229 230 Stats::Scalar pfIssued; 231 | 219 /** Determine if addresses are on the same page */ 220 bool samePage(Addr a, Addr b) const; 221 /** Determine the address of the block in which a lays */ 222 Addr blockAddress(Addr a) const; 223 /** Determine the address of a at block granularity */ 224 Addr blockIndex(Addr a) const; 225 /** Determine the address of the page in which a lays */ 226 Addr pageAddress(Addr a) const; 227 /** Determine the page-offset of a */ 228 Addr pageOffset(Addr a) const; 229 /** Build the address of the i-th block inside the page */ 230 Addr pageIthBlockAddress(Addr page, uint32_t i) const; 231 232 Stats::Scalar pfIssued; 233 |
234 /** Total prefetches issued */ 235 uint64_t issuedPrefetches; 236 /** Total prefetches that has been useful */ 237 uint64_t usefulPrefetches; 238 |
|
232 public: 233 234 BasePrefetcher(const BasePrefetcherParams *p); 235 236 virtual ~BasePrefetcher() {} 237 238 void setCache(BaseCache *_cache); 239 --- 34 unchanged lines hidden --- | 239 public: 240 241 BasePrefetcher(const BasePrefetcherParams *p); 242 243 virtual ~BasePrefetcher() {} 244 245 void setCache(BaseCache *_cache); 246 --- 34 unchanged lines hidden --- |