summaryrefslogtreecommitdiff
path: root/src/systemc/core
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-08-08 19:31:56 -0700
committerGabe Black <gabeblack@google.com>2018-09-20 01:44:03 +0000
commit7dd1cea5179de87e8b8f9de5d425b1466e8ab8e9 (patch)
tree3aefc1018b4d5a82e9806d5e461356546ea17029 /src/systemc/core
parent9116aa29946c61dacb1b3e67c805adadc79d4162 (diff)
downloadgem5-7dd1cea5179de87e8b8f9de5d425b1466e8ab8e9.tar.xz
systemc: Implement sc_export.
This change ignores the rule that sc_exports all have to be bound exactly once and only by the end of elaboration. If it's bound more than once, then the earlier binding will be overwritten, and if it's not bound at all then it will act like a null pointer. To accomodate doing those checks in the future, the sc_export_base constructor and destructor are in the .cc file even though they do very little so that they can be extended to track a list of all exports which exist. Change-Id: Ie9a3416b8fa87bca55bc9f87f3238c4de3c2e729 Reviewed-on: https://gem5-review.googlesource.com/12079 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/core')
-rw-r--r--src/systemc/core/sc_export.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/systemc/core/sc_export.cc b/src/systemc/core/sc_export.cc
index 387b8a7fd..8340cf9c6 100644
--- a/src/systemc/core/sc_export.cc
+++ b/src/systemc/core/sc_export.cc
@@ -33,10 +33,7 @@
namespace sc_core
{
-void
-sc_export_base::warn_unimpl(const char *func) const
-{
- warn("%s not implemented.\n", func);
-}
+sc_export_base::sc_export_base(const char *n) : sc_object(n) {}
+sc_export_base::~sc_export_base() {}
} // namespace sc_core