Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/11280
Change subject: systemc: Add the nonstandard sc_hierarchical_name_exists
function.
......................................................................
systemc: Add the nonstandard sc_hierarchical_name_exists function.
Change-Id: I1340bb6cb0ae29d81b5d73b3dd39ebb11c14802c
---
M src/systemc/core/sc_module.cc
M src/systemc/ext/core/_using.hh
M src/systemc/ext/core/sc_module.hh
3 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/systemc/core/sc_module.cc b/src/systemc/core/sc_module.cc
index 0954ce9..ffcff9e 100644
--- a/src/systemc/core/sc_module.cc
+++ b/src/systemc/core/sc_module.cc
@@ -615,6 +615,13 @@
}
bool
+sc_hierarchical_name_exists(const char *name)
+{
+ warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+ return false;
+}
+
+bool
sc_start_of_simulation_invoked()
{
warn("%s not implemented.\n", __PRETTY_FUNCTION__);
diff --git a/src/systemc/ext/core/_using.hh b/src/systemc/ext/core/_using.hh
index 8f00949..efc6341 100644
--- a/src/systemc/ext/core/_using.hh
+++ b/src/systemc/ext/core/_using.hh
@@ -93,6 +93,7 @@
using sc_core::wait;
using sc_core::halt;
using sc_core::sc_gen_unique_name;
+using sc_core::sc_hierarchical_name_exists;
using sc_core::sc_behavior;
using sc_core::sc_channel;
using sc_core::sc_start_of_simulation_invoked;
diff --git a/src/systemc/ext/core/sc_module.hh
b/src/systemc/ext/core/sc_module.hh
index 7891961..82b48ab 100644
--- a/src/systemc/ext/core/sc_module.hh
+++ b/src/systemc/ext/core/sc_module.hh
@@ -272,6 +272,9 @@
const char *sc_gen_unique_name(const char *);
+// Nonstandard
+bool sc_hierarchical_name_exists(const char *name);
+
typedef sc_module sc_behavior;
typedef sc_module sc_channel;
--
To view, visit https://gem5-review.googlesource.com/11280
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I1340bb6cb0ae29d81b5d73b3dd39ebb11c14802c
Gerrit-Change-Number: 11280
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabebl...@google.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev