From 34f850f80316201379d888bd72791be93aa5d06f Mon Sep 17 00:00:00 2001 From: "Daniel R. Carvalho" Date: Tue, 3 Sep 2019 15:45:19 +0200 Subject: 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 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20593 Tested-by: kokoro Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg --- configs/example/arm/fs_bigLITTLE.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'configs/example') 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=[], -- cgit v1.2.3