systemc: Add some error checks to some classes.
authorGabe Black <gabeblack@google.com>
Tue, 11 Sep 2018 23:16:49 +0000 (16:16 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 9 Oct 2018 21:48:14 +0000 (21:48 +0000)
commitf7a2c41be0e94a308da30c685a88006a763bb93f
tree5f70c216fb1ae7f99a99b54e806093e8131a47d1
parent1f23ce702a4776318e592f101bd94d5127bb7ba9
systemc: Add some error checks to some classes.

These check whether those classes are being constructed in legal
circumstances, and avoids a null pointer dereference.

Change-Id: Ied36ee15c3d7bf6ee444351a841c38576780298e
Reviewed-on: https://gem5-review.googlesource.com/c/12622
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/core/sc_export.cc
src/systemc/core/sc_port.cc
src/systemc/core/scheduler.cc
src/systemc/core/scheduler.hh