summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Saidi <Ali.Saidi@ARM.com>2013-01-07 13:05:33 -0500
committerAli Saidi <Ali.Saidi@ARM.com>2013-01-07 13:05:33 -0500
commit90bd20aae2bc940397628a4598b5b25f2c8549b5 (patch)
tree27c6eee6bc5609d191ada2ae1a3b30cf9d5d8950
parentf32f372455c99bf5765f5fda3efc7da180dfcda8 (diff)
downloadgem5-90bd20aae2bc940397628a4598b5b25f2c8549b5.tar.xz
tests: Always specify memory mode in every test system.
Previous to this change we didn't always set the memory mode which worked as long as we never attempted to switch CPUs or checked that a CPU was in a memory system with the correct mode. Future changes will make CPUs verify that they're operating in the correct mode and thus we need to always set it.
-rw-r--r--tests/configs/inorder-timing.py3
-rw-r--r--tests/configs/o3-timing-checker.py3
-rw-r--r--tests/configs/o3-timing-mp-ruby.py3
-rw-r--r--tests/configs/o3-timing-mp.py5
-rw-r--r--tests/configs/o3-timing-ruby.py3
-rw-r--r--tests/configs/o3-timing.py3
-rw-r--r--tests/configs/simple-timing.py3
7 files changed, 16 insertions, 7 deletions
diff --git a/tests/configs/inorder-timing.py b/tests/configs/inorder-timing.py
index baeab677a..a92c61ba1 100644
--- a/tests/configs/inorder-timing.py
+++ b/tests/configs/inorder-timing.py
@@ -40,7 +40,8 @@ cpu.clock = '2GHz'
system = System(cpu = cpu,
physmem = SimpleDRAM(),
- membus = CoherentBus())
+ membus = CoherentBus(),
+ mem_mode = "timing")
system.system_port = system.membus.slave
system.physmem.port = system.membus.master
# create the interrupt controller
diff --git a/tests/configs/o3-timing-checker.py b/tests/configs/o3-timing-checker.py
index a4dddb08f..a33a2ac06 100644
--- a/tests/configs/o3-timing-checker.py
+++ b/tests/configs/o3-timing-checker.py
@@ -53,7 +53,8 @@ cpu.clock = '2GHz'
system = System(cpu = cpu,
physmem = SimpleDRAM(),
- membus = CoherentBus())
+ membus = CoherentBus(),
+ mem_mode = "timing")
system.system_port = system.membus.slave
system.physmem.port = system.membus.master
cpu.connectAllPorts(system.membus)
diff --git a/tests/configs/o3-timing-mp-ruby.py b/tests/configs/o3-timing-mp-ruby.py
index 9bdef5eef..126e71ed5 100644
--- a/tests/configs/o3-timing-mp-ruby.py
+++ b/tests/configs/o3-timing-mp-ruby.py
@@ -38,7 +38,8 @@ import ruby_config
ruby_memory = ruby_config.generate("TwoLevel_SplitL1UnifiedL2.rb", nb_cores)
# system simulated
-system = System(cpu = cpus, physmem = ruby_memory, membus = CoherentBus())
+system = System(cpu = cpus, physmem = ruby_memory, membus = CoherentBus(),
+ mem_mode = "timing")
for cpu in cpus:
# create the interrupt controller
diff --git a/tests/configs/o3-timing-mp.py b/tests/configs/o3-timing-mp.py
index 6f3bddc6f..c3a4929bb 100644
--- a/tests/configs/o3-timing-mp.py
+++ b/tests/configs/o3-timing-mp.py
@@ -35,7 +35,10 @@ nb_cores = 4
cpus = [ DerivO3CPU(cpu_id=i) for i in xrange(nb_cores) ]
# system simulated
-system = System(cpu = cpus, physmem = SimpleDRAM(), membus = CoherentBus())
+system = System(cpu = cpus,
+ physmem = SimpleDRAM(),
+ membus = CoherentBus(),
+ mem_mode = "timing")
# l2cache & bus
system.toL2Bus = CoherentBus(clock = '2GHz')
diff --git a/tests/configs/o3-timing-ruby.py b/tests/configs/o3-timing-ruby.py
index a45939f36..26dbb000b 100644
--- a/tests/configs/o3-timing-ruby.py
+++ b/tests/configs/o3-timing-ruby.py
@@ -40,7 +40,8 @@ cpu.clock = '2GHz'
system = System(cpu = cpu,
physmem = ruby_memory,
- membus = CoherentBus())
+ membus = CoherentBus(),
+ mem_mode = "timing")
system.physmem.port = system.membus.master
# create the interrupt controller
cpu.createInterruptController()
diff --git a/tests/configs/o3-timing.py b/tests/configs/o3-timing.py
index 30c2f413e..474d13902 100644
--- a/tests/configs/o3-timing.py
+++ b/tests/configs/o3-timing.py
@@ -42,7 +42,8 @@ cpu.clock = '2GHz'
system = System(cpu = cpu,
physmem = SimpleDRAM(),
- membus = CoherentBus())
+ membus = CoherentBus(),
+ mem_mode = "timing")
system.system_port = system.membus.slave
system.physmem.port = system.membus.master
# create the interrupt controller
diff --git a/tests/configs/simple-timing.py b/tests/configs/simple-timing.py
index 5a851ba25..b366f01e5 100644
--- a/tests/configs/simple-timing.py
+++ b/tests/configs/simple-timing.py
@@ -37,7 +37,8 @@ cpu.addTwoLevelCacheHierarchy(L1Cache(size = '128kB'),
L2Cache(size = '2MB'))
system = System(cpu = cpu,
physmem = SimpleMemory(),
- membus = CoherentBus())
+ membus = CoherentBus(),
+ mem_mode = "timing")
system.system_port = system.membus.slave
system.physmem.port = system.membus.master
# create the interrupt controller