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>
 void
 wait(int n)
 {
+    if (n <= 0) {
+        std::string msg = csprintf("n = %d", n);
+        SC_REPORT_ERROR("(E525) wait(n) is only valid for n > 0", msg.c_str());
+    }
     for (int i = 0; i < n; i++)
         wait();
 }