systemc: Implement sc_export.
authorGabe Black <gabeblack@google.com>
Thu, 9 Aug 2018 02:31:56 +0000 (19:31 -0700)
committerGabe Black <gabeblack@google.com>
Thu, 20 Sep 2018 01:44:03 +0000 (01:44 +0000)
commit7dd1cea5179de87e8b8f9de5d425b1466e8ab8e9
tree3aefc1018b4d5a82e9806d5e461356546ea17029
parent9116aa29946c61dacb1b3e67c805adadc79d4162
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>
src/systemc/core/sc_export.cc
src/systemc/ext/core/sc_export.hh