diff options
author | Gabe Black <gabeblack@google.com> | 2018-10-07 03:59:56 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-10-16 01:12:26 +0000 |
commit | 3420f0e223888bf70cd502efb5a534e651891b5c (patch) | |
tree | b8482805bf9b7febebb9775aa87cc0d82787c1f7 /src/systemc/core/python.hh | |
parent | b366cbcde953e2adddc10a2825e2803b5f8a9bdd (diff) | |
download | gem5-3420f0e223888bf70cd502efb5a534e651891b5c.tar.xz |
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>
Diffstat (limited to 'src/systemc/core/python.hh')
-rw-r--r-- | src/systemc/core/python.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/systemc/core/python.hh b/src/systemc/core/python.hh index 0d68c5916..d11310eda 100644 --- a/src/systemc/core/python.hh +++ b/src/systemc/core/python.hh @@ -37,6 +37,8 @@ namespace sc_gem5 struct PythonReadyFunc { + PythonReadyFunc *next; + PythonReadyFunc(); ~PythonReadyFunc() {} virtual void run() = 0; @@ -44,6 +46,8 @@ struct PythonReadyFunc struct PythonInitFunc { + PythonInitFunc *next; + PythonInitFunc(); ~PythonInitFunc() {} virtual void run(pybind11::module &systemc) = 0; |