summaryrefslogtreecommitdiff
path: root/src/python/m5/__init__.py
diff options
context:
space:
mode:
authorLisa Hsu <hsul@eecs.umich.edu>2006-11-08 15:05:23 -0500
committerLisa Hsu <hsul@eecs.umich.edu>2006-11-08 15:05:23 -0500
commit64c0d82dec8ae042d41b6dbaa17a40095bb09091 (patch)
tree20a6c1aa0766d392783b402aff6949c84943d451 /src/python/m5/__init__.py
parent5a46f336a1b98d1ddeed40bcb24e285394760bf3 (diff)
downloadgem5-64c0d82dec8ae042d41b6dbaa17a40095bb09091.tar.xz
simplify maxtick parsing in both the python and the c++.
configs/common/Simulation.py: simplify maxtick code a little bit - instead of checking for -1, just set it at MaxTick. src/python/m5/__init__.py: make a new m5 param called MaxTick. src/sim/host.hh: fix the M5 def. of MaxTick src/sim/main.cc: Simplify the MaxTick/num_cycles parsing within main.cc --HG-- extra : convert_revision : f800addfbc1323591c2e05b892276b439b671668
Diffstat (limited to 'src/python/m5/__init__.py')
-rw-r--r--src/python/m5/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/python/m5/__init__.py b/src/python/m5/__init__.py
index 42abfe2cc..579562b38 100644
--- a/src/python/m5/__init__.py
+++ b/src/python/m5/__init__.py
@@ -39,6 +39,9 @@ from cc_main import simulate, SimLoopExitEvent
# import the m5 compile options
import defines
+# define a MaxTick parameter
+MaxTick = 2**63 - 1
+
# define this here so we can use it right away if necessary
def panic(string):
print >>sys.stderr, 'panic:', string