diff options
author | Nikos Nikoleris <nikos.nikoleris@arm.com> | 2018-05-03 12:14:41 +0100 |
---|---|---|
committer | Nikos Nikoleris <nikos.nikoleris@arm.com> | 2018-05-31 17:45:23 +0000 |
commit | 56865ad1154c7c3fde2ae6b7329d0c888390f781 (patch) | |
tree | 61e8693763072515bc6364b1ea0020ff84603ffa /src/mem/cache/prefetch | |
parent | 51056cec69a72931a319e7be9370ea63f18e1aa3 (diff) | |
download | gem5-56865ad1154c7c3fde2ae6b7329d0c888390f781.tar.xz |
mem-cache: Fix include directives in the cache related classes
Change-Id: I111b0f662897c43974aadb08da1ed85c7542585c
Reviewed-on: https://gem5-review.googlesource.com/10433
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Diffstat (limited to 'src/mem/cache/prefetch')
-rw-r--r-- | src/mem/cache/prefetch/base.cc | 3 | ||||
-rw-r--r-- | src/mem/cache/prefetch/base.hh | 7 | ||||
-rw-r--r-- | src/mem/cache/prefetch/queued.cc | 7 | ||||
-rw-r--r-- | src/mem/cache/prefetch/queued.hh | 8 | ||||
-rw-r--r-- | src/mem/cache/prefetch/stride.cc | 5 | ||||
-rw-r--r-- | src/mem/cache/prefetch/stride.hh | 6 | ||||
-rw-r--r-- | src/mem/cache/prefetch/tagged.cc | 2 | ||||
-rw-r--r-- | src/mem/cache/prefetch/tagged.hh | 3 |
8 files changed, 35 insertions, 6 deletions
diff --git a/src/mem/cache/prefetch/base.cc b/src/mem/cache/prefetch/base.cc index 90c6742f9..22a12ba5f 100644 --- a/src/mem/cache/prefetch/base.cc +++ b/src/mem/cache/prefetch/base.cc @@ -48,10 +48,11 @@ #include "mem/cache/prefetch/base.hh" -#include <list> +#include <cassert> #include "base/intmath.hh" #include "mem/cache/base.hh" +#include "params/BasePrefetcher.hh" #include "sim/system.hh" BasePrefetcher::BasePrefetcher(const BasePrefetcherParams *p) diff --git a/src/mem/cache/prefetch/base.hh b/src/mem/cache/prefetch/base.hh index 3b2310621..cc54ab1b8 100644 --- a/src/mem/cache/prefetch/base.hh +++ b/src/mem/cache/prefetch/base.hh @@ -49,12 +49,17 @@ #ifndef __MEM_CACHE_PREFETCH_BASE_HH__ #define __MEM_CACHE_PREFETCH_BASE_HH__ +#include <cstdint> + #include "base/statistics.hh" +#include "base/types.hh" #include "mem/packet.hh" -#include "params/BasePrefetcher.hh" +#include "mem/request.hh" #include "sim/clocked_object.hh" class BaseCache; +struct BasePrefetcherParams; +class System; class BasePrefetcher : public ClockedObject { diff --git a/src/mem/cache/prefetch/queued.cc b/src/mem/cache/prefetch/queued.cc index 4a685d884..bf3a384ea 100644 --- a/src/mem/cache/prefetch/queued.cc +++ b/src/mem/cache/prefetch/queued.cc @@ -39,8 +39,13 @@ #include "mem/cache/prefetch/queued.hh" +#include <cassert> + +#include "base/logging.hh" +#include "base/trace.hh" #include "debug/HWPrefetch.hh" -#include "mem/cache/base.hh" +#include "mem/request.hh" +#include "params/QueuedPrefetcher.hh" QueuedPrefetcher::QueuedPrefetcher(const QueuedPrefetcherParams *p) : BasePrefetcher(p), queueSize(p->queue_size), latency(p->latency), diff --git a/src/mem/cache/prefetch/queued.hh b/src/mem/cache/prefetch/queued.hh index 108891fcc..bb38377c1 100644 --- a/src/mem/cache/prefetch/queued.hh +++ b/src/mem/cache/prefetch/queued.hh @@ -40,10 +40,16 @@ #ifndef __MEM_CACHE_PREFETCH_QUEUED_HH__ #define __MEM_CACHE_PREFETCH_QUEUED_HH__ +#include <cstdint> #include <list> +#include <utility> +#include "base/statistics.hh" +#include "base/types.hh" #include "mem/cache/prefetch/base.hh" -#include "params/QueuedPrefetcher.hh" +#include "mem/packet.hh" + +struct QueuedPrefetcherParams; class QueuedPrefetcher : public BasePrefetcher { diff --git a/src/mem/cache/prefetch/stride.cc b/src/mem/cache/prefetch/stride.cc index f2679a292..efe982af2 100644 --- a/src/mem/cache/prefetch/stride.cc +++ b/src/mem/cache/prefetch/stride.cc @@ -48,9 +48,14 @@ #include "mem/cache/prefetch/stride.hh" +#include <cassert> + +#include "base/intmath.hh" +#include "base/logging.hh" #include "base/random.hh" #include "base/trace.hh" #include "debug/HWPrefetch.hh" +#include "params/StridePrefetcher.hh" StridePrefetcher::StridePrefetcher(const StridePrefetcherParams *p) : QueuedPrefetcher(p), diff --git a/src/mem/cache/prefetch/stride.hh b/src/mem/cache/prefetch/stride.hh index be6e41d0a..55cdbc86d 100644 --- a/src/mem/cache/prefetch/stride.hh +++ b/src/mem/cache/prefetch/stride.hh @@ -48,10 +48,14 @@ #ifndef __MEM_CACHE_PREFETCH_STRIDE_HH__ #define __MEM_CACHE_PREFETCH_STRIDE_HH__ +#include <string> #include <unordered_map> +#include "base/types.hh" #include "mem/cache/prefetch/queued.hh" -#include "params/StridePrefetcher.hh" +#include "mem/packet.hh" + +struct StridePrefetcherParams; class StridePrefetcher : public QueuedPrefetcher { diff --git a/src/mem/cache/prefetch/tagged.cc b/src/mem/cache/prefetch/tagged.cc index 32a5b47f8..abe6b9dca 100644 --- a/src/mem/cache/prefetch/tagged.cc +++ b/src/mem/cache/prefetch/tagged.cc @@ -35,6 +35,8 @@ #include "mem/cache/prefetch/tagged.hh" +#include "params/TaggedPrefetcher.hh" + TaggedPrefetcher::TaggedPrefetcher(const TaggedPrefetcherParams *p) : QueuedPrefetcher(p), degree(p->degree) { diff --git a/src/mem/cache/prefetch/tagged.hh b/src/mem/cache/prefetch/tagged.hh index 02debe91a..95162aa45 100644 --- a/src/mem/cache/prefetch/tagged.hh +++ b/src/mem/cache/prefetch/tagged.hh @@ -37,8 +37,9 @@ #define __MEM_CACHE_PREFETCH_TAGGED_HH__ #include "mem/cache/prefetch/queued.hh" -#include "params/TaggedPrefetcher.hh" +#include "mem/packet.hh" +struct TaggedPrefetcherParams; class TaggedPrefetcher : public QueuedPrefetcher { |