systemc: Add some error checks to the sc_module constructor.
authorGabe Black <gabeblack@google.com>
Wed, 3 Oct 2018 23:24:10 +0000 (16:24 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 16 Oct 2018 00:50:09 +0000 (00:50 +0000)
commit0686b8553381caf7ccd4ac7023ce1d419743ca54
tree39f459a2a73d8ff829610940a7b51126e92179e6
parent8946c9d52fc2d789844586867d047be69651ddd6
systemc: Add some error checks to the sc_module constructor.

These match error checks which are already in, for instance, the
sc_port constructor.

Change-Id: I8dfb4ce37bf0e59c6fa879f0afda5112af78b40b
Reviewed-on: https://gem5-review.googlesource.com/c/13290
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/core/sc_module.cc