Daniel Carvalho has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/45392 )
Change subject: dev-arm: Rename SCMI namespace as scmi
......................................................................
dev-arm: Rename SCMI namespace as scmi
As part of recent decisions regarding namespace
naming conventions, all namespaces will be changed
to snake case.
SCMI became scmi.
Change-Id: I68f729124079ecce02120577d2b89b25f10bde4a
Signed-off-by: Daniel R. Carvalho <[email protected]>
---
M src/dev/arm/css/Scmi.py
M src/dev/arm/css/scmi_platform.cc
M src/dev/arm/css/scmi_platform.hh
M src/dev/arm/css/scmi_protocols.cc
M src/dev/arm/css/scmi_protocols.hh
5 files changed, 14 insertions(+), 13 deletions(-)
diff --git a/src/dev/arm/css/Scmi.py b/src/dev/arm/css/Scmi.py
index 790806f..b5759cf 100644
--- a/src/dev/arm/css/Scmi.py
+++ b/src/dev/arm/css/Scmi.py
@@ -46,7 +46,7 @@
"""
type = 'ScmiChannel'
cxx_header = "dev/arm/css/scmi_platform.hh"
- cxx_class = "SCMI::VirtualChannel"
+ cxx_class = "scmi::VirtualChannel"
shmem_range = Param.AddrRange(
"Virtual channel's shared memory address range")
phys_id = Param.Unsigned(4,
@@ -78,7 +78,7 @@
"""
type = 'ScmiAgentChannel'
cxx_header = "dev/arm/css/scmi_platform.hh"
- cxx_class = "SCMI::AgentChannel"
+ cxx_class = "scmi::AgentChannel"
class ScmiPlatformChannel(ScmiChannel):
@@ -87,7 +87,7 @@
"""
type = 'ScmiPlatformChannel'
cxx_header = "dev/arm/css/scmi_platform.hh"
- cxx_class = "SCMI::PlatformChannel"
+ cxx_class = "scmi::PlatformChannel"
class ScmiCommunication(SimObject):
"""
@@ -98,7 +98,7 @@
"""
type = 'ScmiCommunication'
cxx_header = "dev/arm/css/scmi_platform.hh"
- cxx_class = "SCMI::Communication"
+ cxx_class = "scmi::Communication"
agent_channel = Param.ScmiAgentChannel(
"Agent to Platform channel")
@@ -108,7 +108,7 @@
class ScmiPlatform(Scp):
type = 'ScmiPlatform'
cxx_header = "dev/arm/css/scmi_platform.hh"
- cxx_class = "SCMI::Platform"
+ cxx_class = "scmi::Platform"
comms = VectorParam.ScmiCommunication([],
"SCMI Communications")
diff --git a/src/dev/arm/css/scmi_platform.cc
b/src/dev/arm/css/scmi_platform.cc
index 823d225..d9a42da 100644
--- a/src/dev/arm/css/scmi_platform.cc
+++ b/src/dev/arm/css/scmi_platform.cc
@@ -43,7 +43,7 @@
#include "dev/arm/doorbell.hh"
#include "mem/packet_access.hh"
-using namespace SCMI;
+using namespace scmi;
AgentChannel::AgentChannel(const ScmiChannelParams &p)
: VirtualChannel(p),
diff --git a/src/dev/arm/css/scmi_platform.hh
b/src/dev/arm/css/scmi_platform.hh
index 8b23a09..f012213 100644
--- a/src/dev/arm/css/scmi_platform.hh
+++ b/src/dev/arm/css/scmi_platform.hh
@@ -46,8 +46,7 @@
class Doorbell;
-namespace SCMI
-{
+namespace scmi {
class Platform;
@@ -326,6 +325,6 @@
DmaPort dmaPort;
};
-} // namespace SCMI
+} // namespace scmi
#endif // __DEV_ARM_CSS_SCMI_PLATFORM_H__
diff --git a/src/dev/arm/css/scmi_protocols.cc
b/src/dev/arm/css/scmi_protocols.cc
index dcec68e..61b3174 100644
--- a/src/dev/arm/css/scmi_protocols.cc
+++ b/src/dev/arm/css/scmi_protocols.cc
@@ -40,7 +40,7 @@
#include "debug/SCMI.hh"
#include "dev/arm/css/scmi_platform.hh"
-using namespace SCMI;
+using namespace scmi;
const std::string
Protocol::name() const
diff --git a/src/dev/arm/css/scmi_protocols.hh
b/src/dev/arm/css/scmi_protocols.hh
index 041dba2..94414e1 100644
--- a/src/dev/arm/css/scmi_protocols.hh
+++ b/src/dev/arm/css/scmi_protocols.hh
@@ -41,8 +41,10 @@
#include <cstdint>
#include <string>
-namespace SCMI
-{
+#include "base/compiler.hh"
+
+GEM5_DEPRECATED_NAMESPACE(SCMI, scmi);
+namespace scmi {
class Platform;
struct Message;
@@ -148,6 +150,6 @@
};
-}; // namespace SCMI
+}; // namespace scmi
#endif
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/45392
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: I68f729124079ecce02120577d2b89b25f10bde4a
Gerrit-Change-Number: 45392
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