systemc: Don't depend on the order of static initializers.
authorGabe Black <gabeblack@google.com>
Sun, 7 Oct 2018 10:59:56 +0000 (03:59 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 16 Oct 2018 01:12:26 +0000 (01:12 +0000)
commit3420f0e223888bf70cd502efb5a534e651891b5c
treeb8482805bf9b7febebb9775aa87cc0d82787c1f7
parentb366cbcde953e2adddc10a2825e2803b5f8a9bdd
systemc: Don't depend on the order of static initializers.

STL containers may need to be constructed before they're used. Don't
count on being able to insert into them during a static initializer.

Change-Id: Icb05d5084a470e1ebd976ae6e1954b1a78aabd6a
Reviewed-on: https://gem5-review.googlesource.com/c/13329
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/core/python.cc
src/systemc/core/python.hh
src/systemc/utils/report.cc
src/systemc/utils/report.hh