summaryrefslogtreecommitdiff
path: root/src/systemc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-06-15 21:44:15 -0700
committerGabe Black <gabeblack@google.com>2018-08-28 21:19:50 +0000
commit61cf4339466da51c76c858245bd1841fd00e8405 (patch)
tree344b274a96559ef20da6a0963a51d88f292d9914 /src/systemc
parent40eb6f9f14bd3dce68d832ea572f2629aef4150d (diff)
downloadgem5-61cf4339466da51c76c858245bd1841fd00e8405.tar.xz
systemc: Add some deprecated sc_module constructors.
Change-Id: Ibe2bfe63536af33fca6040f4aef999ee928d876b Reviewed-on: https://gem5-review.googlesource.com/11278 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc')
-rw-r--r--src/systemc/core/sc_module.cc10
-rw-r--r--src/systemc/ext/core/sc_module.hh4
2 files changed, 14 insertions, 0 deletions
diff --git a/src/systemc/core/sc_module.cc b/src/systemc/core/sc_module.cc
index a461022a3..b4fd29267 100644
--- a/src/systemc/core/sc_module.cc
+++ b/src/systemc/core/sc_module.cc
@@ -155,6 +155,16 @@ sc_module::sc_module()
warn("%s not implemented.\n", __PRETTY_FUNCTION__);
}
+sc_module::sc_module(const char *)
+{
+ warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+}
+
+sc_module::sc_module(const std::string &)
+{
+ warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+}
+
void
sc_module::reset_signal_is(const sc_in<bool> &, bool)
{
diff --git a/src/systemc/ext/core/sc_module.hh b/src/systemc/ext/core/sc_module.hh
index 25053dfa1..ffb1a3ccb 100644
--- a/src/systemc/ext/core/sc_module.hh
+++ b/src/systemc/ext/core/sc_module.hh
@@ -148,6 +148,10 @@ class sc_module : public sc_object
sc_module(const sc_module_name &);
sc_module();
+ // Deprecated
+ sc_module(const char *);
+ sc_module(const std::string &);
+
/* Deprecated, but used in the regression tests. */
void end_module() {}