systemc: Report an error if n <= 0 in wait(int n).
authorGabe Black <gabeblack@google.com>
Sat, 1 Sep 2018 23:37:55 +0000 (16:37 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 3 Oct 2018 00:32:17 +0000 (00:32 +0000)
commit4c639e171abae185a6e0aa0bb908c0e1e37547b7
treef33d85fe330818fc17dfeb593c1c022d0b4f5cec
parent643918fe491421823ecfba72500b19cc2b435ffc
systemc: Report an error if n <= 0 in wait(int n).

This is in the spec, and tested by one of the regression tests.

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