fix some build problems from prior changesets

This commit is contained in:
Nathan Binkert
2011-04-20 18:45:03 -07:00
parent 41680f4bad
commit 99fbd18ea5
13 changed files with 22 additions and 2 deletions

View File

@@ -144,6 +144,8 @@ def interact(scope):
code.InteractiveConsole(scope).interact(banner)
def main(*args):
import m5
import core
import debug
import defines
@@ -154,7 +156,6 @@ def main(*args):
from util import fatal
global options
if len(args) == 0:
options, arguments = parse_options()
elif len(args) == 2:
@@ -162,6 +163,8 @@ def main(*args):
else:
raise TypeError, "main() takes 0 or 2 arguments (%d given)" % len(args)
m5.options = options
def check_tracing():
if defines.TRACING_ON:
return

View File

@@ -47,7 +47,7 @@ MaxTick = 2**63 - 1
# The final hook to generate .ini files. Called from the user script
# once the config is built.
def instantiate(ckpt_dir=None):
from main import options
from m5 import options
root = objects.Root.getInstance()