Daniel Carvalho has uploaded this change for review. ( 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]>
---
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, 87 insertions(+), 85 deletions(-)



diff --git a/src/mem/cache/base.hh b/src/mem/cache/base.hh
index dbe8eec..ac944cf 100644
--- a/src/mem/cache/base.hh
+++ b/src/mem/cache/base.hh
@@ -75,7 +75,7 @@
 #include "sim/sim_exit.hh"
 #include "sim/system.hh"

-namespace Prefetcher {
+namespace prefetch {
     class Base;
 }
 class MSHR;
@@ -347,7 +347,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..1b9e750 100644
--- a/src/mem/cache/prefetch/access_map_pattern_matching.cc
+++ b/src/mem/cache/prefetch/access_map_pattern_matching.cc
@@ -33,7 +33,7 @@
 #include "params/AMPMPrefetcher.hh"
 #include "params/AccessMapPatternMatching.hh"

-namespace Prefetcher {
+namespace prefetch {

 AccessMapPatternMatching::AccessMapPatternMatching(
     const AccessMapPatternMatchingParams &p)
@@ -263,4 +263,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..f927f93 100644
--- a/src/mem/cache/prefetch/access_map_pattern_matching.hh
+++ b/src/mem/cache/prefetch/access_map_pattern_matching.hh
@@ -46,7 +46,7 @@
 struct AccessMapPatternMatchingParams;
 struct AMPMPrefetcherParams;

-namespace Prefetcher {
+namespace prefetch {

 class AccessMapPatternMatching : public ClockedObject
 {
@@ -200,6 +200,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 96eca5e..772bca6 100644
--- a/src/mem/cache/prefetch/base.cc
+++ b/src/mem/cache/prefetch/base.cc
@@ -52,7 +52,7 @@
 #include "params/BasePrefetcher.hh"
 #include "sim/system.hh"

-namespace Prefetcher {
+namespace prefetch {

 Base::PrefetchInfo::PrefetchInfo(PacketPtr pkt, Addr addr, bool miss)
   : address(addr), pc(pkt->req->hasPC() ? pkt->req->getPC() : 0),
@@ -256,4 +256,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..d7c9ef3 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,8 @@
 class BaseCache;
 struct BasePrefetcherParams;

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

 class Base : public ClockedObject
 {
@@ -381,6 +383,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..90fec30 100644
--- a/src/mem/cache/prefetch/bop.cc
+++ b/src/mem/cache/prefetch/bop.cc
@@ -31,7 +31,7 @@
 #include "debug/HWPrefetch.hh"
 #include "params/BOPPrefetcher.hh"

-namespace Prefetcher {
+namespace prefetch {

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

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

 struct BOPPrefetcherParams;

-namespace Prefetcher {
+namespace prefetch {

 class BOP : public Queued
 {
@@ -155,6 +155,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..eb1c20a 100644
--- a/src/mem/cache/prefetch/delta_correlating_prediction_tables.cc
+++ b/src/mem/cache/prefetch/delta_correlating_prediction_tables.cc
@@ -33,7 +33,7 @@
 #include "params/DCPTPrefetcher.hh"
 #include "params/DeltaCorrelatingPredictionTables.hh"

-namespace Prefetcher {
+namespace prefetch {

 DeltaCorrelatingPredictionTables::DeltaCorrelatingPredictionTables(
    const DeltaCorrelatingPredictionTablesParams &p) : SimObject(p),
@@ -157,4 +157,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..e402d46 100644
--- a/src/mem/cache/prefetch/delta_correlating_prediction_tables.hh
+++ b/src/mem/cache/prefetch/delta_correlating_prediction_tables.hh
@@ -36,7 +36,7 @@
 struct DeltaCorrelatingPredictionTablesParams;
 struct DCPTPrefetcherParams;

-namespace Prefetcher {
+namespace prefetch {

 /**
  * Delta Correlating Prediction Tables Prefetcher
@@ -129,6 +129,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..c97da99 100644
--- a/src/mem/cache/prefetch/indirect_memory.cc
+++ b/src/mem/cache/prefetch/indirect_memory.cc
@@ -32,7 +32,7 @@
  #include "mem/cache/prefetch/associative_set_impl.hh"
  #include "params/IndirectMemoryPrefetcher.hh"

-namespace Prefetcher {
+namespace prefetch {

 IndirectMemory::IndirectMemory(const IndirectMemoryPrefetcherParams &p)
   : Queued(p),
@@ -254,4 +254,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..d9b97e3 100644
--- a/src/mem/cache/prefetch/indirect_memory.hh
+++ b/src/mem/cache/prefetch/indirect_memory.hh
@@ -47,7 +47,7 @@

 struct IndirectMemoryPrefetcherParams;

-namespace Prefetcher {
+namespace prefetch {

 class IndirectMemory : public Queued
 {
@@ -200,6 +200,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..fa4cbac 100644
--- a/src/mem/cache/prefetch/irregular_stream_buffer.cc
+++ b/src/mem/cache/prefetch/irregular_stream_buffer.cc
@@ -32,7 +32,7 @@
 #include "mem/cache/prefetch/associative_set_impl.hh"
 #include "params/IrregularStreamBufferPrefetcher.hh"

-namespace Prefetcher {
+namespace prefetch {

 IrregularStreamBuffer::IrregularStreamBuffer(
     const IrregularStreamBufferPrefetcherParams &p)
@@ -208,4 +208,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..ef3473c 100644
--- a/src/mem/cache/prefetch/irregular_stream_buffer.hh
+++ b/src/mem/cache/prefetch/irregular_stream_buffer.hh
@@ -45,7 +45,7 @@

 struct IrregularStreamBufferPrefetcherParams;

-namespace Prefetcher {
+namespace prefetch {

 class IrregularStreamBuffer : public Queued
 {
@@ -136,6 +136,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..f7ceeb2 100644
--- a/src/mem/cache/prefetch/multi.cc
+++ b/src/mem/cache/prefetch/multi.cc
@@ -39,7 +39,7 @@

 #include "params/MultiPrefetcher.hh"

-namespace Prefetcher {
+namespace prefetch {

 Multi::Multi(const MultiPrefetcherParams &p)
   : Base(p),
@@ -79,4 +79,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..f8336c8 100644
--- a/src/mem/cache/prefetch/multi.hh
+++ b/src/mem/cache/prefetch/multi.hh
@@ -42,7 +42,7 @@

 struct MultiPrefetcherParams;

-namespace Prefetcher {
+namespace prefetch {

 class Multi : public Base
 {
@@ -68,6 +68,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..b4dee91 100644
--- a/src/mem/cache/prefetch/pif.cc
+++ b/src/mem/cache/prefetch/pif.cc
@@ -34,7 +34,7 @@
 #include "mem/cache/prefetch/associative_set_impl.hh"
 #include "params/PIFPrefetcher.hh"

-namespace Prefetcher {
+namespace prefetch {

 PIF::PIF(const PIFPrefetcherParams &p)
     : Queued(p),
@@ -243,4 +243,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..d31af2b 100644
--- a/src/mem/cache/prefetch/pif.hh
+++ b/src/mem/cache/prefetch/pif.hh
@@ -46,7 +46,7 @@

 struct PIFPrefetcherParams;

-namespace Prefetcher {
+namespace prefetch {

 class PIF : public Queued
 {
@@ -188,6 +188,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 067f206..c294507 100644
--- a/src/mem/cache/prefetch/queued.cc
+++ b/src/mem/cache/prefetch/queued.cc
@@ -47,7 +47,7 @@
 #include "mem/request.hh"
 #include "params/QueuedPrefetcher.hh"

-namespace Prefetcher {
+namespace prefetch {

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

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

 struct QueuedPrefetcherParams;

-namespace Prefetcher {
+namespace prefetch {

 class Queued : public Base
 {
@@ -250,7 +250,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..3fd1d62 100644
--- a/src/mem/cache/prefetch/sbooe.cc
+++ b/src/mem/cache/prefetch/sbooe.cc
@@ -31,7 +31,7 @@
 #include "debug/HWPrefetch.hh"
 #include "params/SBOOEPrefetcher.hh"

-namespace Prefetcher {
+namespace prefetch {

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

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

 struct SBOOEPrefetcherParams;

-namespace Prefetcher {
+namespace prefetch {

 class SBOOE : public Queued
 {
@@ -158,6 +158,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..368693a 100644
--- a/src/mem/cache/prefetch/signature_path.cc
+++ b/src/mem/cache/prefetch/signature_path.cc
@@ -35,7 +35,7 @@
 #include "mem/cache/prefetch/associative_set_impl.hh"
 #include "params/SignaturePathPrefetcher.hh"

-namespace Prefetcher {
+namespace prefetch {

 SignaturePath::SignaturePath(const SignaturePathPrefetcherParams &p)
     : Queued(p),
@@ -316,4 +316,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..eb7a78b 100644
--- a/src/mem/cache/prefetch/signature_path.hh
+++ b/src/mem/cache/prefetch/signature_path.hh
@@ -47,7 +47,7 @@

 struct SignaturePathPrefetcherParams;

-namespace Prefetcher {
+namespace prefetch {

 class SignaturePath : public Queued
 {
@@ -286,6 +286,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..8f8d05d 100644
--- a/src/mem/cache/prefetch/signature_path_v2.cc
+++ b/src/mem/cache/prefetch/signature_path_v2.cc
@@ -34,7 +34,7 @@
 #include "mem/cache/prefetch/associative_set_impl.hh"
 #include "params/SignaturePathPrefetcherV2.hh"

-namespace Prefetcher {
+namespace prefetch {

 SignaturePathV2::SignaturePathV2(const SignaturePathPrefetcherV2Params &p)
     : SignaturePath(p),
@@ -128,4 +128,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..a6fba6f 100644
--- a/src/mem/cache/prefetch/signature_path_v2.hh
+++ b/src/mem/cache/prefetch/signature_path_v2.hh
@@ -47,7 +47,7 @@

 struct SignaturePathPrefetcherV2Params;

-namespace Prefetcher {
+namespace prefetch {

 class SignaturePathV2 : public SignaturePath
 {
@@ -94,6 +94,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..75ded75 100644
--- a/src/mem/cache/prefetch/slim_ampm.cc
+++ b/src/mem/cache/prefetch/slim_ampm.cc
@@ -30,7 +30,7 @@

 #include "params/SlimAMPMPrefetcher.hh"

-namespace Prefetcher {
+namespace prefetch {

 SlimAMPM::SlimAMPM(const SlimAMPMPrefetcherParams &p)
   : Queued(p), ampm(*p.ampm), dcpt(*p.dcpt)
@@ -47,4 +47,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..d8209cd 100644
--- a/src/mem/cache/prefetch/slim_ampm.hh
+++ b/src/mem/cache/prefetch/slim_ampm.hh
@@ -45,7 +45,7 @@

 struct SlimAMPMPrefetcherParams;

-namespace Prefetcher {
+namespace prefetch {

 class SlimAMPM : public Queued
 {
@@ -61,6 +61,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..fceab70 100644
--- a/src/mem/cache/prefetch/spatio_temporal_memory_streaming.cc
+++ b/src/mem/cache/prefetch/spatio_temporal_memory_streaming.cc
@@ -32,7 +32,7 @@
 #include "mem/cache/prefetch/associative_set_impl.hh"
 #include "params/STeMSPrefetcher.hh"

-namespace Prefetcher {
+namespace prefetch {

 STeMS::STeMS(const STeMSPrefetcherParams &p)
   : Queued(p), spatialRegionSize(p.spatial_region_size),
@@ -246,4 +246,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..d99a64c 100644
--- a/src/mem/cache/prefetch/spatio_temporal_memory_streaming.hh
+++ b/src/mem/cache/prefetch/spatio_temporal_memory_streaming.hh
@@ -50,7 +50,7 @@

 struct STeMSPrefetcherParams;

-namespace Prefetcher {
+namespace prefetch {

 class STeMS : public Queued
 {
@@ -202,6 +202,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..7031c53 100644
--- a/src/mem/cache/prefetch/stride.cc
+++ b/src/mem/cache/prefetch/stride.cc
@@ -57,7 +57,7 @@
 #include "mem/cache/replacement_policies/base.hh"
 #include "params/StridePrefetcher.hh"

-namespace Prefetcher {
+namespace prefetch {

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

-} // namespace Prefetcher
+} // namespace prefetch
diff --git a/src/mem/cache/prefetch/stride.hh b/src/mem/cache/prefetch/stride.hh
index b4b1505..4899fcd 100644
--- a/src/mem/cache/prefetch/stride.hh
+++ b/src/mem/cache/prefetch/stride.hh
@@ -66,7 +66,7 @@
 }
 struct StridePrefetcherParams;

-namespace Prefetcher {
+namespace prefetch {

 /**
  * Override the default set associative to apply a specific hash function
@@ -158,6 +158,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..8631073 100644
--- a/src/mem/cache/prefetch/tagged.cc
+++ b/src/mem/cache/prefetch/tagged.cc
@@ -35,7 +35,7 @@

 #include "params/TaggedPrefetcher.hh"

-namespace Prefetcher {
+namespace prefetch {

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

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

 struct TaggedPrefetcherParams;

-namespace Prefetcher {
+namespace prefetch {

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

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

 #endif // __MEM_CACHE_PREFETCH_TAGGED_HH__

--
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: 1
Gerrit-Owner: Daniel Carvalho <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
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