systemc: If no sc_module_name was used, throw an error.
authorGabe Black <gabeblack@google.com>
Thu, 23 Aug 2018 02:24:18 +0000 (19:24 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 25 Sep 2018 23:57:06 +0000 (23:57 +0000)
commitf17f15e57fa16c2ce7eb4c951165b4978d686f87
treeb3180c3996dd146c007f0c4d3270f8a46913e2a2
parent46b85b66374f30af7e97254e45d534ef8a7a11ba
systemc: If no sc_module_name was used, throw an error.

This is tested by the regression tests. Also make sure the handshake
which sets up instances of sc_module is cleaned up if we bail partway
through for some reason, for instance if an intermediate class throws
an exception as part of its constructor.

Change-Id: I89afe5f76832cc132aa2bb8f19916dea64546784
Reviewed-on: https://gem5-review.googlesource.com/12251
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/core/module.cc
src/systemc/core/module.hh
src/systemc/core/sc_module.cc