From fe3e8084959a6910f4c8d075c5c03e40d0269527 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Mon, 25 Feb 2019 11:55:02 +0000 Subject: configs: Use absolute import paths Use absoluate import paths to be Python 3 compatible. This also imports absolute_import from __future__ to ensure that Python 2.7 behaves the same way as Python 3. Change-Id: Ica06ed95814e9cd3e768b3e1785075e36f6e56d0 Signed-off-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/16708 Reviewed-by: Jason Lowe-Power --- configs/example/arm/devices.py | 3 +++ configs/example/arm/dist_bigLITTLE.py | 3 +++ configs/example/arm/fs_bigLITTLE.py | 1 + configs/example/arm/fs_power.py | 1 + configs/example/arm/starter_fs.py | 1 + configs/example/arm/starter_se.py | 1 + 6 files changed, 10 insertions(+) (limited to 'configs/example/arm') diff --git a/configs/example/arm/devices.py b/configs/example/arm/devices.py index 0c08ea23d..c7d5a7c4d 100644 --- a/configs/example/arm/devices.py +++ b/configs/example/arm/devices.py @@ -38,6 +38,9 @@ # System components used by the bigLITTLE.py configuration script +from __future__ import print_function +from __future__ import absolute_import + import m5 from m5.objects import * m5.util.addToPath('../../') diff --git a/configs/example/arm/dist_bigLITTLE.py b/configs/example/arm/dist_bigLITTLE.py index 5194fc7e6..5bce3fd82 100644 --- a/configs/example/arm/dist_bigLITTLE.py +++ b/configs/example/arm/dist_bigLITTLE.py @@ -38,6 +38,9 @@ # This configuration file extends the example ARM big.LITTLE(tm) # configuration to enabe dist-gem5 siulations of big.LITTLE systems. +from __future__ import print_function +from __future__ import absolute_import + import argparse import os diff --git a/configs/example/arm/fs_bigLITTLE.py b/configs/example/arm/fs_bigLITTLE.py index f363872a3..678b038ea 100644 --- a/configs/example/arm/fs_bigLITTLE.py +++ b/configs/example/arm/fs_bigLITTLE.py @@ -41,6 +41,7 @@ from __future__ import print_function +from __future__ import absolute_import import argparse import os diff --git a/configs/example/arm/fs_power.py b/configs/example/arm/fs_power.py index 7b92c8db8..0de656801 100644 --- a/configs/example/arm/fs_power.py +++ b/configs/example/arm/fs_power.py @@ -40,6 +40,7 @@ # with example power models. from __future__ import print_function +from __future__ import absolute_import import argparse import os diff --git a/configs/example/arm/starter_fs.py b/configs/example/arm/starter_fs.py index 6e53d7b8c..35ed2afa2 100644 --- a/configs/example/arm/starter_fs.py +++ b/configs/example/arm/starter_fs.py @@ -44,6 +44,7 @@ at: http://www.arm.com/ResearchEnablement/SystemModeling """ from __future__ import print_function +from __future__ import absolute_import import os import m5 diff --git a/configs/example/arm/starter_se.py b/configs/example/arm/starter_se.py index ef218d978..b76be5f48 100644 --- a/configs/example/arm/starter_se.py +++ b/configs/example/arm/starter_se.py @@ -44,6 +44,7 @@ at: http://www.arm.com/ResearchEnablement/SystemModeling """ from __future__ import print_function +from __future__ import absolute_import import os import m5 -- cgit v1.2.3