diff options
Diffstat (limited to 'src/systemc/core/channel.hh')
-rw-r--r-- | src/systemc/core/channel.hh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/systemc/core/channel.hh b/src/systemc/core/channel.hh index 7ce437572..6111e3c16 100644 --- a/src/systemc/core/channel.hh +++ b/src/systemc/core/channel.hh @@ -30,6 +30,8 @@ #ifndef __SYSTEMC_CORE_CHANNEL_HH__ #define __SYSTEMC_CORE_CHANNEL_HH__ +#include <set> + #include "systemc/core/list.hh" #include "systemc/ext/core/sc_prim.hh" @@ -39,9 +41,9 @@ namespace sc_gem5 class Channel : public ListNode { public: - Channel(sc_core::sc_prim_channel *_sc_chan) : _sc_chan(_sc_chan) {} + Channel(sc_core::sc_prim_channel *_sc_chan); - virtual ~Channel() {} + virtual ~Channel(); void requestUpdate(); void asyncRequestUpdate(); @@ -53,6 +55,8 @@ class Channel : public ListNode sc_core::sc_prim_channel *_sc_chan; }; +extern std::set<Channel *> allChannels; + } // namespace sc_gem5 #endif //__SYSTEMC_CORE_CHANNEL_HH__ |