From 6dd6500b3c28e687c6296252caec564a47ac9726 Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Fri, 8 Nov 2019 16:50:52 +0000 Subject: [PATCH] tests: Using super for calling superclass __init__ Change-Id: I19906db9ce1b9ffb4107b47fe2bc64a8e005e776 Signed-off-by: Giacomo Travaglini Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22684 Reviewed-by: Jason Lowe-Power Reviewed-by: Bobby R. Bruce Maintainer: Jason Lowe-Power Maintainer: Bobby R. Bruce Tested-by: kokoro --- tests/configs/base_config.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/configs/base_config.py b/tests/configs/base_config.py index bf0b00df8..cde9442d8 100644 --- a/tests/configs/base_config.py +++ b/tests/configs/base_config.py @@ -218,10 +218,10 @@ class BaseSESystem(BaseSystem): """Basic syscall-emulation builder.""" def __init__(self, **kwargs): - BaseSystem.__init__(self, **kwargs) + super(BaseSESystem, self).__init__(**kwargs) def init_system(self, system): - BaseSystem.init_system(self, system) + super(BaseSESystem, self).init_system(system) def create_system(self): system = System(physmem = self.mem_class(), @@ -247,7 +247,7 @@ class BaseSESystemUniprocessor(BaseSESystem): """ def __init__(self, **kwargs): - BaseSESystem.__init__(self, **kwargs) + super(BaseSESystemUniprocessor, self).__init__(**kwargs) def create_caches_private(self, cpu): # The atomic SE configurations do not use caches @@ -264,10 +264,10 @@ class BaseFSSystem(BaseSystem): """Basic full system builder.""" def __init__(self, **kwargs): - BaseSystem.__init__(self, **kwargs) + super(BaseFSSystem, self).__init__(**kwargs) def init_system(self, system): - BaseSystem.init_system(self, system) + super(BaseFSSystem, self).init_system(system) if self.use_ruby: # Connect the ruby io port to the PIO bus, @@ -299,7 +299,7 @@ class BaseFSSystemUniprocessor(BaseFSSystem): """ def __init__(self, **kwargs): - BaseFSSystem.__init__(self, **kwargs) + super(BaseFSSystemUniprocessor, self).__init__(**kwargs) def create_caches_private(self, cpu): cpu.addTwoLevelCacheHierarchy(L1_ICache(size='32kB', assoc=1), @@ -313,7 +313,7 @@ class BaseFSSwitcheroo(BaseFSSystem): """Uniprocessor system prepared for CPU switching""" def __init__(self, cpu_classes, **kwargs): - BaseFSSystem.__init__(self, **kwargs) + super(BaseFSSwitcheroo, self).__init__(**kwargs) self.cpu_classes = tuple(cpu_classes) def create_cpus(self, cpu_clk_domain): -- 2.30.2