summaryrefslogtreecommitdiff
path: root/tests/configs/simple-atomic-dummychecker.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/configs/simple-atomic-dummychecker.py')
-rw-r--r--tests/configs/simple-atomic-dummychecker.py23
1 files changed, 7 insertions, 16 deletions
diff --git a/tests/configs/simple-atomic-dummychecker.py b/tests/configs/simple-atomic-dummychecker.py
index d28501403..f3b322f60 100644
--- a/tests/configs/simple-atomic-dummychecker.py
+++ b/tests/configs/simple-atomic-dummychecker.py
@@ -1,5 +1,5 @@
-# Copyright (c) 2011 ARM Limited
-# All rights reserved
+# Copyright (c) 2013 ARM Limited
+# All rights reserved.
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
@@ -33,20 +33,11 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
-# Authors: Geoffrey Blake
+# Authors: Andreas Hansson
-import m5
from m5.objects import *
+from base_config import *
-system = System(cpu = AtomicSimpleCPU(cpu_id=0),
- physmem = SimpleMemory(),
- membus = CoherentBus())
-system.clock = '1GHz'
-system.system_port = system.membus.slave
-system.physmem.port = system.membus.master
-system.cpu.addCheckerCpu()
-system.cpu.createInterruptController()
-system.cpu.connectAllPorts(system.membus)
-system.cpu.clock = '2GHz'
-
-root = Root(full_system = False, system = system)
+root = BaseSESystemUniprocessor(mem_mode='atomic',
+ cpu_class=AtomicSimpleCPU,
+ checker=True).create_root()