fix some build problems from prior changesets
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user