From d40e70d7f44396a7ade1232145ee306ff989a8b7 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Mon, 27 Feb 2017 17:17:31 +0000 Subject: [PATCH] gem5: updating plaform with base params Gem5SimulationPlatfrom was not acceping base Platform's parameters, such as core_names, making it impossible to configure them on construction. This is rectified in this commit. --- devlib/platform/gem5.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/devlib/platform/gem5.py b/devlib/platform/gem5.py index 36b831a..b9fc802 100644 --- a/devlib/platform/gem5.py +++ b/devlib/platform/gem5.py @@ -27,11 +27,21 @@ from devlib.utils.ssh import AndroidGem5Connection, LinuxGem5Connection class Gem5SimulationPlatform(Platform): - def __init__(self, name, host_output_dir, gem5_bin, gem5_args, gem5_virtio, + def __init__(self, name, + host_output_dir, + gem5_bin, + gem5_args, + gem5_virtio, + core_names=None, + core_clusters=None, + big_core=None, + model=None, + modules=None, gem5_telnet_port=None): # First call the parent class - super(Gem5SimulationPlatform, self).__init__(name=name) + super(Gem5SimulationPlatform, self).__init__(name, core_names, core_cluster, + big_core, model, module) # Start setting up the gem5 parameters/directories # The gem5 subprocess