Change-Id: If261c7a981a247884f0a6466756966b454f197f4
Reviewed-on: https://gem5-review.googlesource.com/c/12606
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
void
Event::notify()
{
+ if (scheduler.inUpdate()) {
+ SC_REPORT_ERROR("(E521) immediate notification is not allowed "
+ "during update phase or elaboration", "");
+ }
+
// An immediate notification overrides any pending delayed notification.
if (delayedNotify.scheduled())
scheduler.deschedule(&delayedNotify);