base,dev,mem-ruby: Rename m5 namespace as gem5

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

::m5 became ::gem5.

Change-Id: I250b4354113fcd6005dc4144ae378552cb8f6717
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45437
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
This commit is contained in:
Daniel R. Carvalho
2021-05-09 11:28:34 -03:00
committed by Daniel Carvalho
parent c151239aa2
commit a658ea043f
10 changed files with 18 additions and 12 deletions

View File

@@ -41,9 +41,11 @@
#include <functional>
#include <stack>
#include "base/compiler.hh"
#include "base/fiber.hh"
namespace m5
GEM5_DEPRECATED_NAMESPACE(m5, gem5);
namespace gem5
{
/**
@@ -292,6 +294,6 @@ class Coroutine : public Fiber
CallerType caller;
};
} //namespace m5
} //namespace gem5
#endif // __BASE_COROUTINE_HH__

View File

@@ -39,7 +39,7 @@
#include "base/coroutine.hh"
using namespace m5;
using namespace gem5;
/**
* This test is checking if the Coroutine, once it's created

View File

@@ -34,7 +34,11 @@
#include <type_traits>
#include <vector>
namespace m5 {
#include "base/compiler.hh"
GEM5_DEPRECATED_NAMESPACE(m5, gem5);
namespace gem5
{
namespace stl_helpers {
template <typename T, typename Enabled=void>
@@ -69,6 +73,6 @@ operator<<(std::ostream& out, const T &t)
}
} // namespace stl_helpers
} // namespace m5
} // namespace gem5
#endif // __BASE_STL_HELPERS_HH__

View File

@@ -354,7 +354,7 @@ class ItsProcess : public Packet::SenderState
using DTE = Gicv3Its::DTE;
using ITTE = Gicv3Its::ITTE;
using CTE = Gicv3Its::CTE;
using Coroutine = m5::Coroutine<PacketPtr, ItsAction>;
using Coroutine = gem5::Coroutine<PacketPtr, ItsAction>;
using Yield = Coroutine::CallerType;
ItsProcess(Gicv3Its &_its);

View File

@@ -94,7 +94,7 @@ struct SMMUSignal
class SMMUProcess : public Packet::SenderState
{
private:
typedef m5::Coroutine<PacketPtr, SMMUAction> Coroutine;
typedef gem5::Coroutine<PacketPtr, SMMUAction> Coroutine;
Coroutine *coroutine;
std::string myName;

View File

@@ -30,7 +30,7 @@
#include "base/stl_helpers.hh"
using m5::stl_helpers::operator<<;
using gem5::stl_helpers::operator<<;
SubBlock::SubBlock(Addr addr, int size)
{

View File

@@ -49,7 +49,7 @@
#include "debug/RubyQueue.hh"
#include "mem/ruby/system/RubySystem.hh"
using m5::stl_helpers::operator<<;
using gem5::stl_helpers::operator<<;
MessageBuffer::MessageBuffer(const Params &p)
: SimObject(p), m_stall_map_size(0),

View File

@@ -48,7 +48,7 @@
#include "mem/ruby/network/MessageBuffer.hh"
#include "mem/ruby/network/simple/SimpleNetwork.hh"
using m5::stl_helpers::operator<<;
using gem5::stl_helpers::operator<<;
Switch::Switch(const Params &p)
: BasicRouter(p),

View File

@@ -37,7 +37,7 @@
typedef AddressProfiler::AddressMap AddressMap;
using m5::stl_helpers::operator<<;
using gem5::stl_helpers::operator<<;
// Helper functions
AccessTraceForAddress&

View File

@@ -78,7 +78,7 @@
#include "mem/ruby/system/Sequencer.hh"
using m5::stl_helpers::operator<<;
using gem5::stl_helpers::operator<<;
Profiler::Profiler(const RubySystemParams &p, RubySystem *rs)
: m_ruby_system(rs), m_hot_lines(p.hot_lines),