systemc: Make the test config retrieve sc_main results.
authorGabe Black <gabeblack@google.com>
Thu, 23 Aug 2018 03:33:26 +0000 (20:33 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 25 Sep 2018 23:58:20 +0000 (23:58 +0000)
commit432dcf7b6207007ccf31a47d85b002fef35a7c7b
treef44f5346dc5a6d23139210ec6250aeedf8b664d1
parentf0e36029ffd8acb482823e89a033a6fe175bb833
systemc: Make the test config retrieve sc_main results.

Accellera's implementation prints any sc_report which is thrown and
escapes sc_main, so we need to do the same to make some tests pass.
Arguably gem5 should fail if sc_main reports an error, but verify.py
would interpret that as the test failing too, and some tests
purposefully generate errors.

This change also stops using the logging module. It wasn't really
providing any benefit, and added extra decoration to log messages
which confused verify.py.

Change-Id: I6850d0ada5e477b67527d99d421478586cda93b3
Reviewed-on: https://gem5-review.googlesource.com/12254
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/tests/config.py