systemc: Detach child events in the Object destructor.
authorGabe Black <gabeblack@google.com>
Fri, 5 Oct 2018 22:31:50 +0000 (15:31 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 16 Oct 2018 00:56:25 +0000 (00:56 +0000)
commit834846f80259522612d966657d68db3fb10ea90c
tree0f6f998ec2fdce2832cff43f766b223728ff6e3b
parentf4a671e1eb534b9cf3e33af581adc364c577c57b
systemc: Detach child events in the Object destructor.

This way they don't try to detach themselves from a parent object which
no longer exists.

Change-Id: Id4a3f3b2241cf8c67cae9b983bd4c1acbef083e3
Reviewed-on: https://gem5-review.googlesource.com/c/13301
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/core/event.cc
src/systemc/core/event.hh
src/systemc/core/object.cc