diff options
Diffstat (limited to 'configs/example')
-rw-r--r-- | configs/example/apu_se.py | 7 | ||||
-rw-r--r-- | configs/example/arm/devices.py | 6 | ||||
-rw-r--r-- | configs/example/arm/fs_bigLITTLE.py | 7 | ||||
-rw-r--r-- | configs/example/etrace_replay.py | 12 | ||||
-rw-r--r-- | configs/example/fs.py | 17 | ||||
-rw-r--r-- | configs/example/garnet_synth_traffic.py | 4 | ||||
-rw-r--r-- | configs/example/hmctest.py | 7 | ||||
-rw-r--r-- | configs/example/ruby_direct_test.py | 4 | ||||
-rw-r--r-- | configs/example/ruby_gpu_random_test.py | 4 | ||||
-rw-r--r-- | configs/example/ruby_mem_test.py | 4 | ||||
-rw-r--r-- | configs/example/ruby_random_test.py | 4 | ||||
-rw-r--r-- | configs/example/se.py | 15 |
12 files changed, 45 insertions, 46 deletions
diff --git a/configs/example/apu_se.py b/configs/example/apu_se.py index 84fadee3f..b8ec149d5 100644 --- a/configs/example/apu_se.py +++ b/configs/example/apu_se.py @@ -43,13 +43,12 @@ from m5.objects import * from m5.util import addToPath addToPath('../') -addToPath('../common') from ruby import Ruby -import Options -import Simulation -import GPUTLBOptions, GPUTLBConfig +from common import Options +from common import Simulation +from common import GPUTLBOptions, GPUTLBConfig ########################## Script Options ######################## def setOption(parser, opt_str, value = 1): diff --git a/configs/example/arm/devices.py b/configs/example/arm/devices.py index 65892d9e6..815e94f0c 100644 --- a/configs/example/arm/devices.py +++ b/configs/example/arm/devices.py @@ -40,9 +40,9 @@ import m5 from m5.objects import * -m5.util.addToPath('../../common') -from Caches import * -import CpuConfig +m5.util.addToPath('../../') +from common.Caches import * +from common import CpuConfig class L1I(L1_ICache): hit_latency = 1 diff --git a/configs/example/arm/fs_bigLITTLE.py b/configs/example/arm/fs_bigLITTLE.py index 80e0817eb..d1b1ee7ab 100644 --- a/configs/example/arm/fs_bigLITTLE.py +++ b/configs/example/arm/fs_bigLITTLE.py @@ -46,9 +46,10 @@ import sys import m5 from m5.objects import * -m5.util.addToPath("../../common") -import SysPaths -import CpuConfig +m5.util.addToPath("../../") + +from common import SysPaths +from common import CpuConfig import devices diff --git a/configs/example/etrace_replay.py b/configs/example/etrace_replay.py index e39024f0f..0b0e37ffd 100644 --- a/configs/example/etrace_replay.py +++ b/configs/example/etrace_replay.py @@ -41,13 +41,13 @@ import optparse from m5.util import addToPath, fatal -addToPath('../common') +addToPath('../') -import Options -import Simulation -import CacheConfig -import MemConfig -from Caches import * +from common import Options +from common import Simulation +from common import CacheConfig +from common import MemConfig +from common.Caches import * parser = optparse.OptionParser() Options.addCommonOptions(parser) diff --git a/configs/example/fs.py b/configs/example/fs.py index 13a8b0cf9..adc67e44c 100644 --- a/configs/example/fs.py +++ b/configs/example/fs.py @@ -50,18 +50,17 @@ from m5.objects import * from m5.util import addToPath, fatal addToPath('../') -addToPath('../common') from ruby import Ruby -from FSConfig import * -from SysPaths import * -from Benchmarks import * -import Simulation -import CacheConfig -import MemConfig -from Caches import * -import Options +from common.FSConfig import * +from common.SysPaths import * +from common.Benchmarks import * +from common import Simulation +from common import CacheConfig +from common import MemConfig +from common.Caches import * +from common import Options # Check if KVM support has been enabled, we might need to do VM diff --git a/configs/example/garnet_synth_traffic.py b/configs/example/garnet_synth_traffic.py index f11022006..16617486d 100644 --- a/configs/example/garnet_synth_traffic.py +++ b/configs/example/garnet_synth_traffic.py @@ -31,10 +31,10 @@ from m5.objects import * from m5.defines import buildEnv from m5.util import addToPath import os, optparse, sys -addToPath('../common') + addToPath('../') -import Options +from common import Options from ruby import Ruby # Get paths we might need. It's expected this file is in m5/configs/example. diff --git a/configs/example/hmctest.py b/configs/example/hmctest.py index bd6ca24d1..6e1ad457b 100644 --- a/configs/example/hmctest.py +++ b/configs/example/hmctest.py @@ -6,9 +6,10 @@ import m5 from m5.objects import * from m5.util import addToPath -addToPath('../common') -import MemConfig -import HMC +addToPath('../') + +from common import MemConfig +from common import HMC parser = optparse.OptionParser() diff --git a/configs/example/ruby_direct_test.py b/configs/example/ruby_direct_test.py index 128a7889a..1c02e6e55 100644 --- a/configs/example/ruby_direct_test.py +++ b/configs/example/ruby_direct_test.py @@ -33,10 +33,10 @@ from m5.objects import * from m5.defines import buildEnv from m5.util import addToPath import os, optparse, sys -addToPath('../common') + addToPath('../') -import Options +from common import Options from ruby import Ruby # Get paths we might need. It's expected this file is in m5/configs/example. diff --git a/configs/example/ruby_gpu_random_test.py b/configs/example/ruby_gpu_random_test.py index 9af446799..08eac583a 100644 --- a/configs/example/ruby_gpu_random_test.py +++ b/configs/example/ruby_gpu_random_test.py @@ -38,10 +38,10 @@ from m5.objects import * from m5.defines import buildEnv from m5.util import addToPath import os, optparse, sys -addToPath('../common') + addToPath('../') -import Options +from common import Options from ruby import Ruby # Get paths we might need. diff --git a/configs/example/ruby_mem_test.py b/configs/example/ruby_mem_test.py index 1958c139d..3b6c5f110 100644 --- a/configs/example/ruby_mem_test.py +++ b/configs/example/ruby_mem_test.py @@ -33,10 +33,10 @@ from m5.objects import * from m5.defines import buildEnv from m5.util import addToPath import os, optparse, sys -addToPath('../common') + addToPath('../') -import Options +from common import Options from ruby import Ruby # Get paths we might need. It's expected this file is in m5/configs/example. diff --git a/configs/example/ruby_random_test.py b/configs/example/ruby_random_test.py index a0dca297e..ce898cd81 100644 --- a/configs/example/ruby_random_test.py +++ b/configs/example/ruby_random_test.py @@ -33,10 +33,10 @@ from m5.objects import * from m5.defines import buildEnv from m5.util import addToPath import os, optparse, sys -addToPath('../common') + addToPath('../') -import Options +from common import Options from ruby import Ruby # Get paths we might need. It's expected this file is in m5/configs/example. diff --git a/configs/example/se.py b/configs/example/se.py index cfc82e83a..c48b99eb4 100644 --- a/configs/example/se.py +++ b/configs/example/se.py @@ -52,17 +52,16 @@ from m5.objects import * from m5.util import addToPath, fatal addToPath('../') -addToPath('../common') from ruby import Ruby -import Options -import Simulation -import CacheConfig -import CpuConfig -import MemConfig -from Caches import * -from cpu2000 import * +from common import Options +from common import Simulation +from common import CacheConfig +from common import CpuConfig +from common import MemConfig +from common.Caches import * +from common.cpu2000 import * # Check if KVM support has been enabled, we might need to do VM # configuration if that's the case. |