diff options
author | Gabe Black <gabeblack@google.com> | 2018-07-19 17:12:31 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-09-11 21:41:31 +0000 |
commit | bc46b4ac03849706c32a8d6a3383d56373983eab (patch) | |
tree | 88ba13efe186915e6719fbd1456c595c1ee33149 /src/systemc/core/object.hh | |
parent | b7ab029883d8311756eefb54c706f83636bf7327 (diff) | |
download | gem5-bc46b4ac03849706c32a8d6a3383d56373983eab.tar.xz |
systemc: Make orphans top level objects instead of panic-ing.
When a simulation ends, the sc_objects it contains are destroyed one
by one, not necessarily in hierarchy order. That means that a parent
object can legitimately be destroyed before its children. Instead of
panic-ing when that inevitably happens, this change makes gem5 turn
those children into top level objects.
Change-Id: Icad9c99310fbc3ddcadbbb4f8a990b4fbfe35bdf
Reviewed-on: https://gem5-review.googlesource.com/12035
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/core/object.hh')
-rw-r--r-- | src/systemc/core/object.hh | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/systemc/core/object.hh b/src/systemc/core/object.hh index 1317986bc..c87a98b2d 100644 --- a/src/systemc/core/object.hh +++ b/src/systemc/core/object.hh @@ -99,7 +99,6 @@ class Object Objects children; Events events; sc_core::sc_object *parent; - ObjectsIt parentIt; sc_core::sc_attr_cltn cltn; }; |