From d71f9712b3640239f70382baade7439ac783f9a1 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Fri, 2 Apr 2010 15:28:22 -0700 Subject: [PATCH] eventq: allow an implicit cast from an EventManager to an EventQueue * --- src/sim/eventq.hh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sim/eventq.hh b/src/sim/eventq.hh index 7c814d872..cee48665d 100644 --- a/src/sim/eventq.hh +++ b/src/sim/eventq.hh @@ -440,6 +440,11 @@ class EventManager return eventq; } + operator EventQueue *() const + { + return eventq; + } + void schedule(Event &event, Tick when) {