Deleted Added
sdiff udiff text old ( 7861:4ebff121cc0e ) new ( 8801:1a84c6a81299 )
full compact
1# Copyright (c) 2005-2007 The Regents of The University of Michigan
2# Copyright (c) 2010 Advanced Micro Devices, Inc.
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 14 unchanged lines hidden (view full) ---

23# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27#
28# Authors: Nathan Binkert
29
30from m5.SimObject import SimObject
31from m5.defines import buildEnv
32from m5.params import *
33from m5.util import fatal
34
35class Root(SimObject):
36
37 _the_instance = None
38
39 def __new__(cls, **kwargs):

--- 14 unchanged lines hidden (view full) ---

54 def getInstance(cls):
55 return Root._the_instance
56
57 def path(self):
58 return 'root'
59
60 type = 'Root'
61
62 full_system = Param.Bool("if this is a full system simulation")
63
64 # Time syncing prevents the simulation from running faster than real time.
65 time_sync_enable = Param.Bool(False, "whether time syncing is enabled")
66 time_sync_period = Param.Clock("100ms", "how often to sync with real time")
67 time_sync_spin_threshold = \
68 Param.Clock("100us", "when less than this much time is left, spin")