summaryrefslogtreecommitdiff
path: root/configs/example/arm/fs_bigLITTLE.py
diff options
context:
space:
mode:
authorDaniel R. Carvalho <odanrc@yahoo.com.br>2019-09-03 15:45:19 +0200
committerDaniel Carvalho <odanrc@yahoo.com.br>2019-10-01 06:15:03 +0000
commit34f850f80316201379d888bd72791be93aa5d06f (patch)
treee7d7be6b080fc774c8d48a449e1a6493bf02f3bd /configs/example/arm/fs_bigLITTLE.py
parent224da08be767b51e8148e5f3e6e0da2e2ea77add (diff)
downloadgem5-34f850f80316201379d888bd72791be93aa5d06f.tar.xz
configs: Port PlatformConfig to the common object list
Port PlatformConfig to use the common object list. Change-Id: If62e596bf1f28b49994da3a2800450d163383755 Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20593 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'configs/example/arm/fs_bigLITTLE.py')
-rw-r--r--configs/example/arm/fs_bigLITTLE.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/configs/example/arm/fs_bigLITTLE.py b/configs/example/arm/fs_bigLITTLE.py
index a1ad2ce73..1407705b6 100644
--- a/configs/example/arm/fs_bigLITTLE.py
+++ b/configs/example/arm/fs_bigLITTLE.py
@@ -54,7 +54,6 @@ m5.util.addToPath("../../")
from common import SysPaths
from common import ObjectList
-from common import PlatformConfig
from common.cores.arm import ex5_big, ex5_LITTLE
import devices
@@ -117,7 +116,7 @@ class Ex5LittleCluster(devices.CpuCluster):
def createSystem(caches, kernel, bootscript,
machine_type="VExpress_GEM5", disks=[]):
- platform = PlatformConfig.get(machine_type)
+ platform = ObjectList.platform_list.get(machine_type)
m5.util.inform("Simulated platform: %s", platform.__name__)
sys = devices.SimpleSystem(caches, default_mem_size, platform(),
@@ -167,7 +166,7 @@ def addOptions(parser):
parser.add_argument("--root", type=str, default="/dev/vda1",
help="Specify the kernel CLI root= argument")
parser.add_argument("--machine-type", type=str,
- choices=PlatformConfig.platform_names(),
+ choices=ObjectList.platform_list.get_names(),
default="VExpress_GEM5",
help="Hardware platform class")
parser.add_argument("--disk", action="append", type=str, default=[],