diff options
author | Nathan Binkert <nate@binkert.org> | 2010-04-02 15:28:22 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2010-04-02 15:28:22 -0700 |
commit | d71f9712b3640239f70382baade7439ac783f9a1 (patch) | |
tree | 5a0fc87fcbc622d011b580ad7efc0daa150edccc /src/sim/eventq.hh | |
parent | f32674d9bcfc801a5f9c24c8d96c6f417391325f (diff) | |
download | gem5-d71f9712b3640239f70382baade7439ac783f9a1.tar.xz |
eventq: allow an implicit cast from an EventManager to an EventQueue *
Diffstat (limited to 'src/sim/eventq.hh')
-rw-r--r-- | src/sim/eventq.hh | 5 |
1 files changed, 5 insertions, 0 deletions
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) { |