systemc: Make sure the right type process is running when calling wait.
authorGabe Black <gabeblack@google.com>
Sat, 22 Sep 2018 13:28:32 +0000 (06:28 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 16 Oct 2018 00:28:28 +0000 (00:28 +0000)
commit2ede803d7c29065c1e42442b495f773c03c68270
tree9565fcbfdaebddf9438f1fc910260dd3d27e1102
parent0f6961d200e6334ca676f16f81280fbdec62b942
systemc: Make sure the right type process is running when calling wait.

That function is only allowed when running a thread or cthread.

Change-Id: Idf98b70018169d4f724aa8168f3c4e8161f0b83d
Reviewed-on: https://gem5-review.googlesource.com/c/12967
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/core/sc_module.cc
src/systemc/tests/systemc/kernel/dynamic_processes/test03/expected_returncode [new file with mode: 0644]