systemc: Centralize module callbacks and report new warnings.
authorGabe Black <gabeblack@google.com>
Sat, 8 Sep 2018 01:25:10 +0000 (18:25 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 9 Oct 2018 21:44:00 +0000 (21:44 +0000)
commita4b82a86115649cbe403315bf04231d5c9512015
tree2cd692e0d2f8e179c5b89c3b76ef23415f5d3ac6
parent18ca156d81b7399945fdb11a3a8aee34f05bf92c
systemc: Centralize module callbacks and report new warnings.

By centralizing module callbacks, the gem5 module class knows when
different stages of the simulation are happening and can do it's own
extra checks. It also compartmentalizes modules more since the kernel
object doesn't have to reach into them to enumerate ports and exports.

Change-Id: I55887284af9c05150fe9d054f5b6147cad6092a1
Reviewed-on: https://gem5-review.googlesource.com/c/12610
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/core/kernel.cc
src/systemc/core/module.cc
src/systemc/core/module.hh
src/systemc/core/sc_module.cc
src/systemc/ext/core/sc_export.hh
src/systemc/ext/core/sc_module.hh
src/systemc/tests/verify.py