diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2013-04-23 00:03:09 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2013-04-23 00:03:09 -0500 |
commit | c2d799c6b06384b2406c0a78da9527649f664519 (patch) | |
tree | e4919a1ff6f7da2129052b84cba845d6741773e3 /tests/configs/base_config.py | |
parent | 95eebf9e5ef61a8937a3fcca802d25a1c620340b (diff) | |
download | gem5-c2d799c6b06384b2406c0a78da9527649f664519.tar.xz |
x86: regressions: add switcher full test
Diffstat (limited to 'tests/configs/base_config.py')
-rw-r--r-- | tests/configs/base_config.py | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/tests/configs/base_config.py b/tests/configs/base_config.py index b4c400a45..29aec35e7 100644 --- a/tests/configs/base_config.py +++ b/tests/configs/base_config.py @@ -104,14 +104,18 @@ class BaseSystem(object): system.l2c.mem_side = system.membus.slave return system.toL2Bus - def init_cpu(self, system, cpu): + def init_cpu(self, system, cpu, sha_bus): """Initialize a CPU. Arguments: system -- System to work on. cpu -- CPU to initialize. """ - cpu.createInterruptController() + if not cpu.switched_out: + self.create_caches_private(cpu) + cpu.createInterruptController() + cpu.connectAllPorts(sha_bus if sha_bus != None else system.membus, + system.membus) def init_kvm(self, system): """Do KVM-specific system initialization. @@ -135,13 +139,7 @@ class BaseSystem(object): sha_bus = self.create_caches_shared(system) for cpu in system.cpu: - if not cpu.switched_out: - self.create_caches_private(cpu) - self.init_cpu(system, cpu) - cpu.connectAllPorts(sha_bus if sha_bus != None else system.membus, - system.membus) - else: - self.init_cpu(system, cpu) + self.init_cpu(system, cpu, sha_bus) @abstractmethod def create_system(self): |