systemc: Centralize how object parents are chosen.
authorGabe Black <gabeblack@google.com>
Sat, 29 Sep 2018 00:12:46 +0000 (17:12 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 16 Oct 2018 00:40:21 +0000 (00:40 +0000)
commit163eb3c56b115e649c72fceff89c8370b6e7306f
treee66057d1e2107b72aad9e256e4620c287d6cbe37
parent3fe6ebb325f3630af32d9210a7121eb5710bf42f
systemc: Centralize how object parents are chosen.

There's a lot of repeated code for this. Also, the sc_vector type
needs to be able to artificially inject a parent for the objects it
creates.

Change-Id: I76f9b551632cd2cd70e26741b215290b35c382e9
Reviewed-on: https://gem5-review.googlesource.com/c/13194
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/core/event.cc
src/systemc/core/module.cc
src/systemc/core/module.hh
src/systemc/core/object.cc
src/systemc/core/object.hh
src/systemc/core/sc_export.cc
src/systemc/core/sc_module.cc
src/systemc/core/sc_port.cc