74,78d73
< # Function to provide to C++ so it can look up instances based on paths
< def resolveSimObject(name):
< obj = config.instanceDict[name]
< return obj.getCCObject()
<
84c79
< config.ticks_per_sec = float(root.clock.frequency)
---
> params.ticks_per_sec = float(root.clock.frequency)
112,116d106
< # This import allows user scripts to reference 'm5.objects.Foo' after
< # just doing an 'import m5' (without an 'import m5.objects'). May not
< # matter since most scripts will probably 'from m5.objects import *'.
< import objects
<
208a199,210
>
> # Since we have so many mutual imports in this package, we should:
> # 1. Put all intra-package imports at the *bottom* of the file, unless
> # they're absolutely needed before that (for top-level statements
> # or class attributes). Imports of "trivial" packages that don't
> # import other packages (e.g., 'smartdict') can be at the top.
> # 2. Never use 'from foo import *' on an intra-package import since
> # you can get the wrong result if foo is only partially imported
> # at the point you do that (i.e., because foo is in the middle of
> # importing *you*).
> import objects
> import params