__init__.py (3504:1d42c37f776b) | __init__.py (3511:8cb26619b6ec) |
---|---|
1# Copyright (c) 2005 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 25 unchanged lines hidden (view full) --- 34# import a few SWIG-wrapped items (those that are likely to be used 35# directly by user scripts) completely into this module for 36# convenience 37from cc_main import simulate, SimLoopExitEvent 38 39# import the m5 compile options 40import defines 41 | 1# Copyright (c) 2005 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 25 unchanged lines hidden (view full) --- 34# import a few SWIG-wrapped items (those that are likely to be used 35# directly by user scripts) completely into this module for 36# convenience 37from cc_main import simulate, SimLoopExitEvent 38 39# import the m5 compile options 40import defines 41 |
42# define a MaxTick parameter 43MaxTick = 2**63 - 1 44 |
|
42# define this here so we can use it right away if necessary 43def panic(string): 44 print >>sys.stderr, 'panic:', string 45 sys.exit(1) 46 47# force scalars to one-element lists for uniformity 48def makeList(objOrList): 49 if isinstance(objOrList, list): --- 161 unchanged lines hidden --- | 45# define this here so we can use it right away if necessary 46def panic(string): 47 print >>sys.stderr, 'panic:', string 48 sys.exit(1) 49 50# force scalars to one-element lists for uniformity 51def makeList(objOrList): 52 if isinstance(objOrList, list): --- 161 unchanged lines hidden --- |