summaryrefslogtreecommitdiff
path: root/src/sim/eventq.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/eventq.cc')
-rw-r--r--src/sim/eventq.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sim/eventq.cc b/src/sim/eventq.cc
index b389efcf2..b32b330e7 100644
--- a/src/sim/eventq.cc
+++ b/src/sim/eventq.cc
@@ -203,7 +203,8 @@ EventQueue::serviceOne()
if (!event->squashed()) {
event->process();
if (event->isExitEvent()) {
- assert(!event->flags.isSet(Event::AutoDelete)); // would be silly
+ assert(!event->flags.isSet(Event::AutoDelete) ||
+ !event->flags.isSet(Event::IsMainQueue)); // would be silly
return event;
}
} else {