python: Fix params/proxy import loop
authorAndreas Sandberg <andreas.sandberg@arm.com>
Sat, 26 Jan 2019 09:23:16 +0000 (09:23 +0000)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 25 Feb 2019 10:04:32 +0000 (10:04 +0000)
commitf4d3080f4586147b9ee962770110944467b26c0c
treefecd701421c6d678e1f6af5e745e540a85ace7ce
parenta3c81f90556143dc6de1e8114c0a613b4010c05c
python: Fix params/proxy import loop

There is a circular dependency between params and proxy at import
time. This causes issues for Python 3. Add the imports to the specific
methods with the dependencies to make the import happen when the
method is executed instead.

Change-Id: I770112fd3c07c395459e204976942bda3dc7236f
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/15993
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Juha Jäykkä <juha.jaykka@arm.com>
src/python/m5/params.py
src/python/m5/proxy.py