Daniel Carvalho has submitted this change. ( https://gem5-review.googlesource.com/c/public/gem5/+/45410 )

Change subject: mem-cache: Rename Prefetcher namespace as prefetch
......................................................................

mem-cache: Rename Prefetcher namespace as prefetch

As part of recent decisions regarding namespace
naming conventions, all namespaces will be changed
to snake case.

::Prefetcher became ::prefetcher.

"prefetch" was chosen over "prefetcher" to avoid generating
conflicts with the already existing variables. "prefetcher"
is a name that is expected to be more common in user's code
than "prefetch".

Change-Id: I8f07217f278a0229e05545b7847f2620ed208c66
Signed-off-by: Daniel R. Carvalho <[email protected]>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45410
Maintainer: Jason Lowe-Power <[email protected]>
Tested-by: kokoro <[email protected]>
Reviewed-by: Hoa Nguyen <[email protected]>
---
M src/mem/cache/base.hh
M src/mem/cache/prefetch/Prefetcher.py
M src/mem/cache/prefetch/access_map_pattern_matching.cc
M src/mem/cache/prefetch/access_map_pattern_matching.hh
M src/mem/cache/prefetch/base.cc
M src/mem/cache/prefetch/base.hh
M src/mem/cache/prefetch/bop.cc
M src/mem/cache/prefetch/bop.hh
M src/mem/cache/prefetch/delta_correlating_prediction_tables.cc
M src/mem/cache/prefetch/delta_correlating_prediction_tables.hh
M src/mem/cache/prefetch/indirect_memory.cc
M src/mem/cache/prefetch/indirect_memory.hh
M src/mem/cache/prefetch/irregular_stream_buffer.cc
M src/mem/cache/prefetch/irregular_stream_buffer.hh
M src/mem/cache/prefetch/multi.cc
M src/mem/cache/prefetch/multi.hh
M src/mem/cache/prefetch/pif.cc
M src/mem/cache/prefetch/pif.hh
M src/mem/cache/prefetch/queued.cc
M src/mem/cache/prefetch/queued.hh
M src/mem/cache/prefetch/sbooe.cc
M src/mem/cache/prefetch/sbooe.hh
M src/mem/cache/prefetch/signature_path.cc
M src/mem/cache/prefetch/signature_path.hh
M src/mem/cache/prefetch/signature_path_v2.cc
M src/mem/cache/prefetch/signature_path_v2.hh
M src/mem/cache/prefetch/slim_ampm.cc
M src/mem/cache/prefetch/slim_ampm.hh
M src/mem/cache/prefetch/spatio_temporal_memory_streaming.cc
M src/mem/cache/prefetch/spatio_temporal_memory_streaming.hh
M src/mem/cache/prefetch/stride.cc
M src/mem/cache/prefetch/stride.hh
M src/mem/cache/prefetch/tagged.cc
M src/mem/cache/prefetch/tagged.hh
34 files changed, 152 insertions(+), 85 deletions(-)

Approvals:
  Hoa Nguyen: Looks good to me, approved
  Jason Lowe-Power: Looks good to me, approved
  kokoro: Regressions pass



diff --git a/src/mem/cache/base.hh b/src/mem/cache/base.hh
index 1af3b91..9b1715c 100644
--- a/src/mem/cache/base.hh
+++ b/src/mem/cache/base.hh
@@ -76,7 +76,9 @@
 #include "sim/sim_exit.hh"
 #include "sim/system.hh"

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{
     class Base;
 }
 class MSHR;
@@ -348,7 +350,7 @@
     compression::Base* compressor;

     /** Prefetcher */
-    Prefetcher::Base *prefetcher;
+    prefetch::Base *prefetcher;

     /** To probe when a cache hit occurs */
     ProbePointArg<PacketPtr> *ppHit;
diff --git a/src/mem/cache/prefetch/Prefetcher.py b/src/mem/cache/prefetch/Prefetcher.py
index 0840c60..0098763 100644
--- a/src/mem/cache/prefetch/Prefetcher.py
+++ b/src/mem/cache/prefetch/Prefetcher.py
@@ -59,7 +59,7 @@
 class BasePrefetcher(ClockedObject):
     type = 'BasePrefetcher'
     abstract = True
-    cxx_class = 'Prefetcher::Base'
+    cxx_class = 'prefetch::Base'
     cxx_header = "mem/cache/prefetch/base.hh"
     cxx_exports = [
         PyBindMethod("addEventProbe"),
@@ -111,7 +111,7 @@

 class MultiPrefetcher(BasePrefetcher):
     type = 'MultiPrefetcher'
-    cxx_class = 'Prefetcher::Multi'
+    cxx_class = 'prefetch::Multi'
     cxx_header = 'mem/cache/prefetch/multi.hh'

     prefetchers = VectorParam.BasePrefetcher([], "Array of prefetchers")
@@ -119,7 +119,7 @@
 class QueuedPrefetcher(BasePrefetcher):
     type = "QueuedPrefetcher"
     abstract = True
-    cxx_class = "Prefetcher::Queued"
+    cxx_class = "prefetch::Queued"
     cxx_header = "mem/cache/prefetch/queued.hh"
     latency = Param.Int(1, "Latency for generated prefetches")
     queue_size = Param.Int(32, "Maximum number of queued prefetches")
@@ -145,12 +145,12 @@

 class StridePrefetcherHashedSetAssociative(SetAssociative):
     type = 'StridePrefetcherHashedSetAssociative'
-    cxx_class = 'Prefetcher::StridePrefetcherHashedSetAssociative'
+    cxx_class = 'prefetch::StridePrefetcherHashedSetAssociative'
     cxx_header = "mem/cache/prefetch/stride.hh"

 class StridePrefetcher(QueuedPrefetcher):
     type = 'StridePrefetcher'
-    cxx_class = 'Prefetcher::Stride'
+    cxx_class = 'prefetch::Stride'
     cxx_header = "mem/cache/prefetch/stride.hh"

     # Do not consult stride prefetcher on instruction accesses
@@ -178,14 +178,14 @@

 class TaggedPrefetcher(QueuedPrefetcher):
     type = 'TaggedPrefetcher'
-    cxx_class = 'Prefetcher::Tagged'
+    cxx_class = 'prefetch::Tagged'
     cxx_header = "mem/cache/prefetch/tagged.hh"

     degree = Param.Int(2, "Number of prefetches to generate")

 class IndirectMemoryPrefetcher(QueuedPrefetcher):
     type = 'IndirectMemoryPrefetcher'
-    cxx_class = 'Prefetcher::IndirectMemory'
+    cxx_class = 'prefetch::IndirectMemory'
     cxx_header = "mem/cache/prefetch/indirect_memory.hh"
     pt_table_entries = Param.MemorySize("16",
         "Number of entries of the Prefetch Table")
@@ -220,7 +220,7 @@

 class SignaturePathPrefetcher(QueuedPrefetcher):
     type = 'SignaturePathPrefetcher'
-    cxx_class = 'Prefetcher::SignaturePath'
+    cxx_class = 'prefetch::SignaturePath'
     cxx_header = "mem/cache/prefetch/signature_path.hh"

     signature_shift = Param.UInt8(3,
@@ -260,7 +260,7 @@

 class SignaturePathPrefetcherV2(SignaturePathPrefetcher):
     type = 'SignaturePathPrefetcherV2'
-    cxx_class = 'Prefetcher::SignaturePathV2'
+    cxx_class = 'prefetch::SignaturePathV2'
     cxx_header = "mem/cache/prefetch/signature_path_v2.hh"

     signature_table_entries = "256"
@@ -283,7 +283,7 @@

 class AccessMapPatternMatching(ClockedObject):
     type = 'AccessMapPatternMatching'
-    cxx_class = 'Prefetcher::AccessMapPatternMatching'
+    cxx_class = 'prefetch::AccessMapPatternMatching'
     cxx_header = "mem/cache/prefetch/access_map_pattern_matching.hh"

     block_size = Param.Unsigned(Parent.block_size,
@@ -322,14 +322,14 @@

 class AMPMPrefetcher(QueuedPrefetcher):
     type = 'AMPMPrefetcher'
-    cxx_class = 'Prefetcher::AMPM'
+    cxx_class = 'prefetch::AMPM'
     cxx_header = "mem/cache/prefetch/access_map_pattern_matching.hh"
     ampm = Param.AccessMapPatternMatching( AccessMapPatternMatching(),
         "Access Map Pattern Matching object")

 class DeltaCorrelatingPredictionTables(SimObject):
     type = 'DeltaCorrelatingPredictionTables'
-    cxx_class = 'Prefetcher::DeltaCorrelatingPredictionTables'
+    cxx_class = 'prefetch::DeltaCorrelatingPredictionTables'
cxx_header = "mem/cache/prefetch/delta_correlating_prediction_tables.hh"
     deltas_per_entry = Param.Unsigned(20,
         "Number of deltas stored in each table entry")
@@ -349,7 +349,7 @@

 class DCPTPrefetcher(QueuedPrefetcher):
     type = 'DCPTPrefetcher'
-    cxx_class = 'Prefetcher::DCPT'
+    cxx_class = 'prefetch::DCPT'
cxx_header = "mem/cache/prefetch/delta_correlating_prediction_tables.hh"
     dcpt = Param.DeltaCorrelatingPredictionTables(
         DeltaCorrelatingPredictionTables(),
@@ -357,7 +357,7 @@

 class IrregularStreamBufferPrefetcher(QueuedPrefetcher):
     type = "IrregularStreamBufferPrefetcher"
-    cxx_class = "Prefetcher::IrregularStreamBuffer"
+    cxx_class = "prefetch::IrregularStreamBuffer"
     cxx_header = "mem/cache/prefetch/irregular_stream_buffer.hh"

     num_counter_bits = Param.Unsigned(2,
@@ -410,7 +410,7 @@

 class SlimAMPMPrefetcher(QueuedPrefetcher):
     type = 'SlimAMPMPrefetcher'
-    cxx_class = 'Prefetcher::SlimAMPM'
+    cxx_class = 'prefetch::SlimAMPM'
     cxx_header = "mem/cache/prefetch/slim_ampm.hh"

     ampm = Param.AccessMapPatternMatching(SlimAccessMapPatternMatching(),
@@ -421,7 +421,7 @@

 class BOPPrefetcher(QueuedPrefetcher):
     type = "BOPPrefetcher"
-    cxx_class = "Prefetcher::BOP"
+    cxx_class = "prefetch::BOP"
     cxx_header = "mem/cache/prefetch/bop.hh"
     score_max = Param.Unsigned(31, "Max. score to update the best offset")
     round_max = Param.Unsigned(100, "Max. round to update the best offset")
@@ -443,7 +443,7 @@

 class SBOOEPrefetcher(QueuedPrefetcher):
     type = 'SBOOEPrefetcher'
-    cxx_class = 'Prefetcher::SBOOE'
+    cxx_class = 'prefetch::SBOOE'
     cxx_header = "mem/cache/prefetch/sbooe.hh"
     latency_buffer_size = Param.Int(32, "Entries in the latency buffer")
sequential_prefetchers = Param.Int(9, "Number of sequential prefetchers")
@@ -453,7 +453,7 @@

 class STeMSPrefetcher(QueuedPrefetcher):
     type = "STeMSPrefetcher"
-    cxx_class = "Prefetcher::STeMS"
+    cxx_class = "prefetch::STeMS"
     cxx_header = "mem/cache/prefetch/spatio_temporal_memory_streaming.hh"

     spatial_region_size = Param.MemorySize("2KiB",
@@ -496,7 +496,7 @@

 class PIFPrefetcher(QueuedPrefetcher):
     type = 'PIFPrefetcher'
-    cxx_class = 'Prefetcher::PIF'
+    cxx_class = 'prefetch::PIF'
     cxx_header = "mem/cache/prefetch/pif.hh"
     cxx_exports = [
         PyBindMethod("addEventProbeRetiredInsts"),
diff --git a/src/mem/cache/prefetch/access_map_pattern_matching.cc b/src/mem/cache/prefetch/access_map_pattern_matching.cc
index ad10138..6a632e0 100644
--- a/src/mem/cache/prefetch/access_map_pattern_matching.cc
+++ b/src/mem/cache/prefetch/access_map_pattern_matching.cc
@@ -33,7 +33,9 @@
 #include "params/AMPMPrefetcher.hh"
 #include "params/AccessMapPatternMatching.hh"

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 AccessMapPatternMatching::AccessMapPatternMatching(
     const AccessMapPatternMatchingParams &p)
@@ -263,4 +265,4 @@
     ampm.calculatePrefetch(pfi, addresses);
 }

-} // namespace Prefetcher
+} // namespace prefetch
diff --git a/src/mem/cache/prefetch/access_map_pattern_matching.hh b/src/mem/cache/prefetch/access_map_pattern_matching.hh
index b9a0536..929f78e 100644
--- a/src/mem/cache/prefetch/access_map_pattern_matching.hh
+++ b/src/mem/cache/prefetch/access_map_pattern_matching.hh
@@ -46,7 +46,9 @@
 struct AccessMapPatternMatchingParams;
 struct AMPMPrefetcherParams;

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 class AccessMapPatternMatching : public ClockedObject
 {
@@ -200,6 +202,6 @@
                            std::vector<AddrPriority> &addresses) override;
 };

-} // namespace Prefetcher
+} // namespace prefetch

 #endif//__MEM_CACHE_PREFETCH_ACCESS_MAP_PATTERN_MATCHING_HH__
diff --git a/src/mem/cache/prefetch/base.cc b/src/mem/cache/prefetch/base.cc
index c38a345..dcf8af6 100644
--- a/src/mem/cache/prefetch/base.cc
+++ b/src/mem/cache/prefetch/base.cc
@@ -52,7 +52,9 @@
 #include "params/BasePrefetcher.hh"
 #include "sim/system.hh"

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 Base::PrefetchInfo::PrefetchInfo(PacketPtr pkt, Addr addr, bool miss)
   : address(addr), pc(pkt->req->hasPC() ? pkt->req->getPC() : 0),
@@ -256,4 +258,4 @@
     tlb = t;
 }

-} // namespace Prefetcher
+} // namespace prefetch
diff --git a/src/mem/cache/prefetch/base.hh b/src/mem/cache/prefetch/base.hh
index af1ad1a..1042b6e 100644
--- a/src/mem/cache/prefetch/base.hh
+++ b/src/mem/cache/prefetch/base.hh
@@ -49,6 +49,7 @@
 #include <cstdint>

 #include "arch/generic/tlb.hh"
+#include "base/compiler.hh"
 #include "base/statistics.hh"
 #include "base/types.hh"
 #include "mem/packet.hh"
@@ -60,7 +61,9 @@
 class BaseCache;
 struct BasePrefetcherParams;

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 class Base : public ClockedObject
 {
@@ -381,6 +384,6 @@
     void addTLB(BaseTLB *tlb);
 };

-} // namespace Prefetcher
+} // namespace prefetch

 #endif //__MEM_CACHE_PREFETCH_BASE_HH__
diff --git a/src/mem/cache/prefetch/bop.cc b/src/mem/cache/prefetch/bop.cc
index d8bd110..255b2f8 100644
--- a/src/mem/cache/prefetch/bop.cc
+++ b/src/mem/cache/prefetch/bop.cc
@@ -31,7 +31,9 @@
 #include "debug/HWPrefetch.hh"
 #include "params/BOPPrefetcher.hh"

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 BOP::BOP(const BOPPrefetcherParams &p)
     : Queued(p),
@@ -260,4 +262,4 @@
     }
 }

-} // namespace Prefetcher
+} // namespace prefetch
diff --git a/src/mem/cache/prefetch/bop.hh b/src/mem/cache/prefetch/bop.hh
index 11e5427..d7539a9 100644
--- a/src/mem/cache/prefetch/bop.hh
+++ b/src/mem/cache/prefetch/bop.hh
@@ -43,7 +43,9 @@

 struct BOPPrefetcherParams;

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 class BOP : public Queued
 {
@@ -155,6 +157,6 @@
std::vector<AddrPriority> &addresses) override;
 };

-} // namespace Prefetcher
+} // namespace prefetch

 #endif /* __MEM_CACHE_PREFETCH_BOP_HH__ */
diff --git a/src/mem/cache/prefetch/delta_correlating_prediction_tables.cc b/src/mem/cache/prefetch/delta_correlating_prediction_tables.cc
index 6b7ee2e..5d6c882 100644
--- a/src/mem/cache/prefetch/delta_correlating_prediction_tables.cc
+++ b/src/mem/cache/prefetch/delta_correlating_prediction_tables.cc
@@ -33,7 +33,9 @@
 #include "params/DCPTPrefetcher.hh"
 #include "params/DeltaCorrelatingPredictionTables.hh"

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 DeltaCorrelatingPredictionTables::DeltaCorrelatingPredictionTables(
    const DeltaCorrelatingPredictionTablesParams &p) : SimObject(p),
@@ -157,4 +159,4 @@
     dcpt.calculatePrefetch(pfi, addresses);
 }

-} // namespace Prefetcher
+} // namespace prefetch
diff --git a/src/mem/cache/prefetch/delta_correlating_prediction_tables.hh b/src/mem/cache/prefetch/delta_correlating_prediction_tables.hh
index a0e434b..c60af20 100644
--- a/src/mem/cache/prefetch/delta_correlating_prediction_tables.hh
+++ b/src/mem/cache/prefetch/delta_correlating_prediction_tables.hh
@@ -36,7 +36,9 @@
 struct DeltaCorrelatingPredictionTablesParams;
 struct DCPTPrefetcherParams;

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 /**
  * Delta Correlating Prediction Tables Prefetcher
@@ -129,6 +131,6 @@
         std::vector<AddrPriority> &addresses) override;
 };

-} // namespace Prefetcher
+} // namespace prefetch

 #endif//__MEM_CACHE_PREFETCH_DELTA_CORRELATING_PREDICTION_TABLES_HH_
diff --git a/src/mem/cache/prefetch/indirect_memory.cc b/src/mem/cache/prefetch/indirect_memory.cc
index 46443d2..4f336b5 100644
--- a/src/mem/cache/prefetch/indirect_memory.cc
+++ b/src/mem/cache/prefetch/indirect_memory.cc
@@ -32,7 +32,9 @@
  #include "mem/cache/prefetch/associative_set_impl.hh"
  #include "params/IndirectMemoryPrefetcher.hh"

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 IndirectMemory::IndirectMemory(const IndirectMemoryPrefetcherParams &p)
   : Queued(p),
@@ -254,4 +256,4 @@
     }
 }

-} // namespace Prefetcher
+} // namespace prefetch
diff --git a/src/mem/cache/prefetch/indirect_memory.hh b/src/mem/cache/prefetch/indirect_memory.hh
index 2c8661d..aae6185 100644
--- a/src/mem/cache/prefetch/indirect_memory.hh
+++ b/src/mem/cache/prefetch/indirect_memory.hh
@@ -47,7 +47,9 @@

 struct IndirectMemoryPrefetcherParams;

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 class IndirectMemory : public Queued
 {
@@ -200,6 +202,6 @@
                            std::vector<AddrPriority> &addresses) override;
 };

-} // namespace Prefetcher
+} // namespace prefetch

 #endif//__MEM_CACHE_PREFETCH_INDIRECT_MEMORY_HH__
diff --git a/src/mem/cache/prefetch/irregular_stream_buffer.cc b/src/mem/cache/prefetch/irregular_stream_buffer.cc
index d73f464..fa02d5e 100644
--- a/src/mem/cache/prefetch/irregular_stream_buffer.cc
+++ b/src/mem/cache/prefetch/irregular_stream_buffer.cc
@@ -32,7 +32,9 @@
 #include "mem/cache/prefetch/associative_set_impl.hh"
 #include "params/IrregularStreamBufferPrefetcher.hh"

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 IrregularStreamBuffer::IrregularStreamBuffer(
     const IrregularStreamBufferPrefetcherParams &p)
@@ -208,4 +210,4 @@
     mapping.counter++;
 }

-} // namespace Prefetcher
+} // namespace prefetch
diff --git a/src/mem/cache/prefetch/irregular_stream_buffer.hh b/src/mem/cache/prefetch/irregular_stream_buffer.hh
index 7dbbf84..d9de292 100644
--- a/src/mem/cache/prefetch/irregular_stream_buffer.hh
+++ b/src/mem/cache/prefetch/irregular_stream_buffer.hh
@@ -45,7 +45,9 @@

 struct IrregularStreamBufferPrefetcherParams;

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 class IrregularStreamBuffer : public Queued
 {
@@ -136,6 +138,6 @@
                            std::vector<AddrPriority> &addresses) override;
 };

-} // namespace Prefetcher
+} // namespace prefetch

 #endif//__MEM_CACHE_PREFETCH_IRREGULAR_STREAM_BUFFER_HH__
diff --git a/src/mem/cache/prefetch/multi.cc b/src/mem/cache/prefetch/multi.cc
index 251e0c6..74328cb 100644
--- a/src/mem/cache/prefetch/multi.cc
+++ b/src/mem/cache/prefetch/multi.cc
@@ -39,7 +39,9 @@

 #include "params/MultiPrefetcher.hh"

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 Multi::Multi(const MultiPrefetcherParams &p)
   : Base(p),
@@ -79,4 +81,4 @@
     return nullptr;
 }

-} // namespace Prefetcher
+} // namespace prefetch
diff --git a/src/mem/cache/prefetch/multi.hh b/src/mem/cache/prefetch/multi.hh
index 58e5794..0206ffe 100644
--- a/src/mem/cache/prefetch/multi.hh
+++ b/src/mem/cache/prefetch/multi.hh
@@ -42,7 +42,9 @@

 struct MultiPrefetcherParams;

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 class Multi : public Base
 {
@@ -68,6 +70,6 @@
     std::list<Base*> prefetchers;
 };

-} // namespace Prefetcher
+} // namespace prefetch

 #endif //__MEM_CACHE_PREFETCH_MULTI_HH__
diff --git a/src/mem/cache/prefetch/pif.cc b/src/mem/cache/prefetch/pif.cc
index c349dac..e28f7d0 100644
--- a/src/mem/cache/prefetch/pif.cc
+++ b/src/mem/cache/prefetch/pif.cc
@@ -34,7 +34,9 @@
 #include "mem/cache/prefetch/associative_set_impl.hh"
 #include "params/PIFPrefetcher.hh"

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 PIF::PIF(const PIFPrefetcherParams &p)
     : Queued(p),
@@ -243,4 +245,4 @@
     listenersPC.push_back(new PrefetchListenerPC(*this, pm, name));
 }

-} // namespace Prefetcher
+} // namespace prefetch
diff --git a/src/mem/cache/prefetch/pif.hh b/src/mem/cache/prefetch/pif.hh
index fb9aa8a..1867924 100644
--- a/src/mem/cache/prefetch/pif.hh
+++ b/src/mem/cache/prefetch/pif.hh
@@ -46,7 +46,9 @@

 struct PIFPrefetcherParams;

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 class PIF : public Queued
 {
@@ -188,6 +190,6 @@
         void addEventProbeRetiredInsts(SimObject *obj, const char *name);
 };

-} // namespace Prefetcher
+} // namespace prefetch

 #endif // __MEM_CACHE_PREFETCH_PIF_HH__
diff --git a/src/mem/cache/prefetch/queued.cc b/src/mem/cache/prefetch/queued.cc
index 65fa7d0..200a7c1 100644
--- a/src/mem/cache/prefetch/queued.cc
+++ b/src/mem/cache/prefetch/queued.cc
@@ -47,7 +47,9 @@
 #include "mem/request.hh"
 #include "params/QueuedPrefetcher.hh"

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 void
 Queued::DeferredPacket::createPkt(Addr paddr, unsigned blk_size,
@@ -484,4 +486,4 @@
     }
 }

-} // namespace Prefetcher
+} // namespace prefetch
diff --git a/src/mem/cache/prefetch/queued.hh b/src/mem/cache/prefetch/queued.hh
index 881cf8d..25c8028 100644
--- a/src/mem/cache/prefetch/queued.hh
+++ b/src/mem/cache/prefetch/queued.hh
@@ -49,7 +49,9 @@

 struct QueuedPrefetcherParams;

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 class Queued : public Base
 {
@@ -250,7 +252,7 @@
                                         PacketPtr pkt);
 };

-} // namespace Prefetcher
+} // namespace prefetch

 #endif //__MEM_CACHE_PREFETCH_QUEUED_HH__

diff --git a/src/mem/cache/prefetch/sbooe.cc b/src/mem/cache/prefetch/sbooe.cc
index 980d010..5d64348 100644
--- a/src/mem/cache/prefetch/sbooe.cc
+++ b/src/mem/cache/prefetch/sbooe.cc
@@ -31,7 +31,9 @@
 #include "debug/HWPrefetch.hh"
 #include "params/SBOOEPrefetcher.hh"

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 SBOOE::SBOOE(const SBOOEPrefetcherParams &p)
     : Queued(p),
@@ -132,4 +134,4 @@
     }
 }

-} // namespace Prefetcher
+} // namespace prefetch
diff --git a/src/mem/cache/prefetch/sbooe.hh b/src/mem/cache/prefetch/sbooe.hh
index a28d126..ee22085 100644
--- a/src/mem/cache/prefetch/sbooe.hh
+++ b/src/mem/cache/prefetch/sbooe.hh
@@ -44,7 +44,9 @@

 struct SBOOEPrefetcherParams;

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 class SBOOE : public Queued
 {
@@ -158,6 +160,6 @@
std::vector<AddrPriority> &addresses) override;
 };

-} // namespace Prefetcher
+} // namespace prefetch

 #endif // __MEM_CACHE_PREFETCH_SBOOE_HH__
diff --git a/src/mem/cache/prefetch/signature_path.cc b/src/mem/cache/prefetch/signature_path.cc
index cecd1f5..e0f9de1 100644
--- a/src/mem/cache/prefetch/signature_path.cc
+++ b/src/mem/cache/prefetch/signature_path.cc
@@ -35,7 +35,9 @@
 #include "mem/cache/prefetch/associative_set_impl.hh"
 #include "params/SignaturePathPrefetcher.hh"

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 SignaturePath::SignaturePath(const SignaturePathPrefetcherParams &p)
     : Queued(p),
@@ -316,4 +318,4 @@
     }
 }

-} // namespace Prefetcher
+} // namespace prefetch
diff --git a/src/mem/cache/prefetch/signature_path.hh b/src/mem/cache/prefetch/signature_path.hh
index c6667e3..2deb2ed 100644
--- a/src/mem/cache/prefetch/signature_path.hh
+++ b/src/mem/cache/prefetch/signature_path.hh
@@ -47,7 +47,9 @@

 struct SignaturePathPrefetcherParams;

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 class SignaturePath : public Queued
 {
@@ -286,6 +288,6 @@
                            std::vector<AddrPriority> &addresses) override;
 };

-} // namespace Prefetcher
+} // namespace prefetch

 #endif//__MEM_CACHE_PREFETCH_SIGNATURE_PATH_HH__
diff --git a/src/mem/cache/prefetch/signature_path_v2.cc b/src/mem/cache/prefetch/signature_path_v2.cc
index 1abb5ca..f1f5928 100644
--- a/src/mem/cache/prefetch/signature_path_v2.cc
+++ b/src/mem/cache/prefetch/signature_path_v2.cc
@@ -34,7 +34,9 @@
 #include "mem/cache/prefetch/associative_set_impl.hh"
 #include "params/SignaturePathPrefetcherV2.hh"

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 SignaturePathV2::SignaturePathV2(const SignaturePathPrefetcherV2Params &p)
     : SignaturePath(p),
@@ -128,4 +130,4 @@
     gh_entry->confidence = path_confidence;
 }

-} // namespace Prefetcher
+} // namespace prefetch
diff --git a/src/mem/cache/prefetch/signature_path_v2.hh b/src/mem/cache/prefetch/signature_path_v2.hh
index efa597c..02efedc 100644
--- a/src/mem/cache/prefetch/signature_path_v2.hh
+++ b/src/mem/cache/prefetch/signature_path_v2.hh
@@ -47,7 +47,9 @@

 struct SignaturePathPrefetcherV2Params;

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 class SignaturePathV2 : public SignaturePath
 {
@@ -94,6 +96,6 @@
     ~SignaturePathV2() = default;
 };

-} // namespace Prefetcher
+} // namespace prefetch

 #endif//__MEM_CACHE_PREFETCH_SIGNATURE_PATH_V2_HH__
diff --git a/src/mem/cache/prefetch/slim_ampm.cc b/src/mem/cache/prefetch/slim_ampm.cc
index fe53476..462fc78 100644
--- a/src/mem/cache/prefetch/slim_ampm.cc
+++ b/src/mem/cache/prefetch/slim_ampm.cc
@@ -30,7 +30,9 @@

 #include "params/SlimAMPMPrefetcher.hh"

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 SlimAMPM::SlimAMPM(const SlimAMPMPrefetcherParams &p)
   : Queued(p), ampm(*p.ampm), dcpt(*p.dcpt)
@@ -47,4 +49,4 @@
     }
 }

-} // namespace Prefetcher
+} // namespace prefetch
diff --git a/src/mem/cache/prefetch/slim_ampm.hh b/src/mem/cache/prefetch/slim_ampm.hh
index e067ded..f67c72f 100644
--- a/src/mem/cache/prefetch/slim_ampm.hh
+++ b/src/mem/cache/prefetch/slim_ampm.hh
@@ -45,7 +45,9 @@

 struct SlimAMPMPrefetcherParams;

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 class SlimAMPM : public Queued
 {
@@ -61,6 +63,6 @@
                           std::vector<AddrPriority> &addresses) override;
 };

-} // namespace Prefetcher
+} // namespace prefetch

 #endif//__MEM_CACHE_PREFETCH_SLIM_AMPM_HH__
diff --git a/src/mem/cache/prefetch/spatio_temporal_memory_streaming.cc b/src/mem/cache/prefetch/spatio_temporal_memory_streaming.cc
index 53374a9..ac3d8fd 100644
--- a/src/mem/cache/prefetch/spatio_temporal_memory_streaming.cc
+++ b/src/mem/cache/prefetch/spatio_temporal_memory_streaming.cc
@@ -32,7 +32,9 @@
 #include "mem/cache/prefetch/associative_set_impl.hh"
 #include "params/STeMSPrefetcher.hh"

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 STeMS::STeMS(const STeMSPrefetcherParams &p)
   : Queued(p), spatialRegionSize(p.spatial_region_size),
@@ -246,4 +248,4 @@
     }
 }

-} // namespace Prefetcher
+} // namespace prefetch
diff --git a/src/mem/cache/prefetch/spatio_temporal_memory_streaming.hh b/src/mem/cache/prefetch/spatio_temporal_memory_streaming.hh
index 5ee7a64..071dcbb 100644
--- a/src/mem/cache/prefetch/spatio_temporal_memory_streaming.hh
+++ b/src/mem/cache/prefetch/spatio_temporal_memory_streaming.hh
@@ -50,7 +50,9 @@

 struct STeMSPrefetcherParams;

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 class STeMS : public Queued
 {
@@ -202,6 +204,6 @@
                            std::vector<AddrPriority> &addresses) override;
 };

-} // namespace Prefetcher
+} // namespace prefetch

 #endif//__MEM_CACHE_PREFETCH_SPATIO_TEMPORAL_MEMORY_STREAMING_HH__
diff --git a/src/mem/cache/prefetch/stride.cc b/src/mem/cache/prefetch/stride.cc
index 18366f7..394aea2 100644
--- a/src/mem/cache/prefetch/stride.cc
+++ b/src/mem/cache/prefetch/stride.cc
@@ -57,7 +57,9 @@
 #include "mem/cache/replacement_policies/base.hh"
 #include "params/StridePrefetcher.hh"

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 Stride::StrideEntry::StrideEntry(const SatCounter8& init_confidence)
   : TaggedEntry(), confidence(init_confidence)
@@ -201,4 +203,4 @@
     return addr;
 }

-} // namespace Prefetcher
+} // namespace prefetch
diff --git a/src/mem/cache/prefetch/stride.hh b/src/mem/cache/prefetch/stride.hh
index 077a035..11b1d02 100644
--- a/src/mem/cache/prefetch/stride.hh
+++ b/src/mem/cache/prefetch/stride.hh
@@ -68,7 +68,9 @@
 }
 struct StridePrefetcherParams;

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 /**
  * Override the default set associative to apply a specific hash function
@@ -160,6 +162,6 @@
                            std::vector<AddrPriority> &addresses) override;
 };

-} // namespace Prefetcher
+} // namespace prefetch

 #endif // __MEM_CACHE_PREFETCH_STRIDE_HH__
diff --git a/src/mem/cache/prefetch/tagged.cc b/src/mem/cache/prefetch/tagged.cc
index 0e6e8de..75a12ab 100644
--- a/src/mem/cache/prefetch/tagged.cc
+++ b/src/mem/cache/prefetch/tagged.cc
@@ -35,7 +35,9 @@

 #include "params/TaggedPrefetcher.hh"

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 Tagged::Tagged(const TaggedPrefetcherParams &p)
     : Queued(p), degree(p.degree)
@@ -55,4 +57,4 @@
     }
 }

-} // namespace Prefetcher
+} // namespace prefetch
diff --git a/src/mem/cache/prefetch/tagged.hh b/src/mem/cache/prefetch/tagged.hh
index 5a84646..97a3d1c 100644
--- a/src/mem/cache/prefetch/tagged.hh
+++ b/src/mem/cache/prefetch/tagged.hh
@@ -39,7 +39,9 @@

 struct TaggedPrefetcherParams;

-namespace Prefetcher {
+GEM5_DEPRECATED_NAMESPACE(Prefetcher, prefetch);
+namespace prefetch
+{

 class Tagged : public Queued
 {
@@ -54,6 +56,6 @@
                            std::vector<AddrPriority> &addresses) override;
 };

-} // namespace Prefetcher
+} // namespace prefetch

 #endif // __MEM_CACHE_PREFETCH_TAGGED_HH__



7 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/45410
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I8f07217f278a0229e05545b7847f2620ed208c66
Gerrit-Change-Number: 45410
Gerrit-PatchSet: 11
Gerrit-Owner: Daniel Carvalho <[email protected]>
Gerrit-Reviewer: Daniel Carvalho <[email protected]>
Gerrit-Reviewer: Hoa Nguyen <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: Nikos Nikoleris <[email protected]>
Gerrit-Reviewer: kokoro <[email protected]>
Gerrit-CC: Bobby R. Bruce <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to