1# Copyright (c) 2017 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license
--- 30 unchanged lines hidden (view full) ---
39# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40#
41# Authors: Nathan Binkert
42
43import m5
44import _m5.event
45
46from _m5.event import GlobalSimLoopExitEvent as SimExit
47from _m5.event import Event, getEventQueue, setEventQueue
48
49mainq = None
50
51class EventWrapper(Event):
52 """Helper class to wrap callable objects in an Event base class"""
53
54 def __init__(self, func, **kwargs):
55 super(EventWrapper, self).__init__(**kwargs)
--- 33 unchanged lines hidden ---
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license
--- 30 unchanged lines hidden (view full) ---
39# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40#
41# Authors: Nathan Binkert
42
43import m5
44import _m5.event
45
46from _m5.event import GlobalSimLoopExitEvent as SimExit
47from _m5.event import Event, getEventQueue, setEventQueue
48
49mainq = None
50
51class EventWrapper(Event):
52 """Helper class to wrap callable objects in an Event base class"""
53
54 def __init__(self, func, **kwargs):
55 super(EventWrapper, self).__init__(**kwargs)
--- 33 unchanged lines hidden ---