Daniel Carvalho has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/45430 )
Change subject: sim: Rename InitParamKey namespace as init_param_key
......................................................................
sim: Rename InitParamKey namespace as init_param_key
As part of recent decisions regarding namespace
naming conventions, all namespaces will be changed
to snake case.
pseudo_inst::InitParamKey became pseudo_inst::init_param_key.
Change-Id: I4a9275a1745e1ed78db0ec99dc91f03ad6d5dfac
Signed-off-by: Daniel R. Carvalho <[email protected]>
---
M src/sim/pseudo_inst.cc
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/sim/pseudo_inst.cc b/src/sim/pseudo_inst.cc
index bd617f8..467edf1 100644
--- a/src/sim/pseudo_inst.cc
+++ b/src/sim/pseudo_inst.cc
@@ -79,8 +79,8 @@
* @note Each key may be at most 16 characters (because we use
* two 64-bit registers to pass in the key to the initparam function).
*/
-namespace InitParamKey
-{
+GEM5_DEPRECATED_NAMESPACE(InitParamKey, init_param_key);
+namespace init_param_key {
/**
* The default key (empty string)
@@ -95,7 +95,7 @@
*/
const std::string DIST_SIZE = "dist-size";
-} // namespace InitParamKey
+} // namespace init_param_key
void
arm(ThreadContext *tc)
@@ -284,11 +284,11 @@
// Check key parameter to figure out what to return.
const std::string key_str(key);
- if (key == InitParamKey::DEFAULT)
+ if (key == init_param_key::DEFAULT)
return tc->getCpuPtr()->system->init_param;
- else if (key == InitParamKey::DIST_RANK)
+ else if (key == init_param_key::DIST_RANK)
return DistIface::rankParam();
- else if (key == InitParamKey::DIST_SIZE)
+ else if (key == init_param_key::DIST_SIZE)
return DistIface::sizeParam();
else
panic("Unknown key for initparam pseudo instruction:\"%s\"",
key_str);
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/45430
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: I4a9275a1745e1ed78db0ec99dc91f03ad6d5dfac
Gerrit-Change-Number: 45430
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