summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGiacomo Travaglini <giacomo.travaglini@arm.com>2019-11-08 16:50:52 +0000
committerGiacomo Travaglini <giacomo.travaglini@arm.com>2019-11-12 09:50:25 +0000
commit6dd6500b3c28e687c6296252caec564a47ac9726 (patch)
treeecc20dfe5230d52902743ce03bf9244f1c6ae857 /tests
parent77a5bc0d04f9e8a2dc584e4439c4af61c947b464 (diff)
downloadgem5-6dd6500b3c28e687c6296252caec564a47ac9726.tar.xz
tests: Using super for calling superclass __init__
Change-Id: I19906db9ce1b9ffb4107b47fe2bc64a8e005e776 Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22684 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu> Maintainer: Jason Lowe-Power <jason@lowepower.com> Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/configs/base_config.py14
1 files 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):