diff options
author | Rekai Gonzalez Alberquilla <Rekai.GonzalezAlberquilla@arm.com> | 2016-04-07 11:32:38 -0500 |
---|---|---|
committer | Rekai Gonzalez Alberquilla <Rekai.GonzalezAlberquilla@arm.com> | 2016-04-07 11:32:38 -0500 |
commit | af27586fbc75480725fbef0564775fe5aa8cc8d8 (patch) | |
tree | 172bc90811714896da278d16d97edbbb1f3fe4e2 /src/mem/cache/prefetch/stride.hh | |
parent | dad7d9277b571305ee248cd761a7dbb9400b3681 (diff) | |
download | gem5-af27586fbc75480725fbef0564775fe5aa8cc8d8.tar.xz |
mem: Add priority to QueuedPrefetcher
Queued prefetcher entries now count with a priority field. The idea is to
add packets ordered by priority and then by age.
For the existing algorithms in which priority doesn't make sense, it is set
to 0 for all deferred packets in the queue.
Diffstat (limited to 'src/mem/cache/prefetch/stride.hh')
-rw-r--r-- | src/mem/cache/prefetch/stride.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mem/cache/prefetch/stride.hh b/src/mem/cache/prefetch/stride.hh index af17252d8..be6e41d0a 100644 --- a/src/mem/cache/prefetch/stride.hh +++ b/src/mem/cache/prefetch/stride.hh @@ -114,7 +114,8 @@ class StridePrefetcher : public QueuedPrefetcher StridePrefetcher(const StridePrefetcherParams *p); - void calculatePrefetch(const PacketPtr &pkt, std::vector<Addr> &addresses); + void calculatePrefetch(const PacketPtr &pkt, + std::vector<AddrPriority> &addresses); }; #endif // __MEM_CACHE_PREFETCH_STRIDE_HH__ |