gem5/tests/configs
Andreas Sandberg f16c0a4a90 sim: Decouple draining from the SimObject hierarchy
Draining is currently done by traversing the SimObject graph and
calling drain()/drainResume() on the SimObjects. This is not ideal
when non-SimObjects (e.g., ports) need draining since this means that
SimObjects owning those objects need to be aware of this.

This changeset moves the responsibility for finding objects that need
draining from SimObjects and the Python-side of the simulator to the
DrainManager. The DrainManager now maintains a set of all objects that
need draining. To reduce the overhead in classes owning non-SimObjects
that need draining, objects inheriting from Drainable now
automatically register with the DrainManager. If such an object is
destroyed, it is automatically unregistered. This means that drain()
and drainResume() should never be called directly on a Drainable
object.

While implementing the new functionality, the DrainManager has now
been made thread safe. In practice, this means that it takes a lock
whenever it manipulates the set of Drainable objects since SimObjects
in different threads may create Drainable objects
dynamically. Similarly, the drain counter is now an atomic_uint, which
ensures that it is manipulated correctly when objects signal that they
are done draining.

A nice side effect of these changes is that it makes the drain state
changes stricter, which the simulation scripts can exploit to avoid
redundant drains.
2015-07-07 09:51:05 +01:00
..
alpha_generic.py config: Move the memory instantiation outside FSConfig 2013-08-19 03:52:27 -04:00
arm_generic.py arm, tests: Update config files to more recent kernels and create 64-bit regressions. 2014-10-29 23:18:27 -05:00
base_config.py mem: Allow read-only caches and check compliance 2015-07-03 10:14:39 -04:00
checkpoint.py test, arm: Add scripts to test checkpoints 2015-03-19 04:06:20 -04:00
memtest-filter.py mem: Move crossbar default latencies to subclasses 2015-03-02 04:00:47 -05:00
memtest-ruby.py cpu: Tidy up the MemTest and make false sharing more obvious 2015-02-11 10:23:28 -05:00
memtest.py mem: Move crossbar default latencies to subclasses 2015-03-02 04:00:47 -05:00
minor-timing-mp.py cpu: Minor CPU add regression tests for ARM and ALPHA 2014-07-23 16:09:05 -05:00
minor-timing.py cpu: Minor CPU add regression tests for ARM and ALPHA 2014-07-23 16:09:05 -05:00
o3-timing-checker.py config: Add a BaseSESystem builder for re-use in regressions 2013-06-27 05:49:49 -04:00
o3-timing-mp-ruby.py mem: Move crossbar default latencies to subclasses 2015-03-02 04:00:47 -05:00
o3-timing-mp.py config: Add a BaseSESystem builder for re-use in regressions 2013-06-27 05:49:49 -04:00
o3-timing-ruby.py mem: Move crossbar default latencies to subclasses 2015-03-02 04:00:47 -05:00
o3-timing.py tests: Use more representative configs for ARM tests 2014-09-20 17:18:33 -04:00
pc-o3-timing.py config: Move the memory instantiation outside FSConfig 2013-08-19 03:52:27 -04:00
pc-simple-atomic.py test: Use SimpleMemory for atomic full-system tests 2013-11-01 11:56:14 -04:00
pc-simple-timing-ruby.py ruby: interface with classic memory controller 2014-11-06 05:42:21 -06:00
pc-simple-timing.py config: Move the memory instantiation outside FSConfig 2013-08-19 03:52:27 -04:00
pc-switcheroo-full.py config: Move the memory instantiation outside FSConfig 2013-08-19 03:52:27 -04:00
realview-minor-dual.py cpu: Minor CPU add regression tests for ARM and ALPHA 2014-07-23 16:09:05 -05:00
realview-minor.py cpu: Minor CPU add regression tests for ARM and ALPHA 2014-07-23 16:09:05 -05:00
realview-o3-checker.py tests: Use O3_ARM_v7a config for full-system ARM regressions 2014-09-03 07:42:41 -04:00
realview-o3-dual.py tests: Use O3_ARM_v7a config for full-system ARM regressions 2014-09-03 07:42:41 -04:00
realview-o3.py tests: Use O3_ARM_v7a config for full-system ARM regressions 2014-09-03 07:42:41 -04:00
realview-simple-atomic-checkpoint.py test, arm: Add scripts to test checkpoints 2015-03-19 04:06:20 -04:00
realview-simple-atomic-dual.py test: Use SimpleMemory for atomic full-system tests 2013-11-01 11:56:14 -04:00
realview-simple-atomic.py test: Use SimpleMemory for atomic full-system tests 2013-11-01 11:56:14 -04:00
realview-simple-timing-dual.py config: Move the memory instantiation outside FSConfig 2013-08-19 03:52:27 -04:00
realview-simple-timing.py config: Move the memory instantiation outside FSConfig 2013-08-19 03:52:27 -04:00
realview-switcheroo-atomic.py test: Use SimpleMemory for atomic full-system tests 2013-11-01 11:56:14 -04:00
realview-switcheroo-full.py config: Move the memory instantiation outside FSConfig 2013-08-19 03:52:27 -04:00
realview-switcheroo-o3.py config: Move the memory instantiation outside FSConfig 2013-08-19 03:52:27 -04:00
realview-switcheroo-timing.py config: Move the memory instantiation outside FSConfig 2013-08-19 03:52:27 -04:00
realview64-minor-dual.py arm, tests: Update config files to more recent kernels and create 64-bit regressions. 2014-10-29 23:18:27 -05:00
realview64-minor.py arm, tests: Update config files to more recent kernels and create 64-bit regressions. 2014-10-29 23:18:27 -05:00
realview64-o3-checker.py arm, tests: Update config files to more recent kernels and create 64-bit regressions. 2014-10-29 23:18:27 -05:00
realview64-o3-dual.py arm, tests: Update config files to more recent kernels and create 64-bit regressions. 2014-10-29 23:18:27 -05:00
realview64-o3.py arm, tests: Update config files to more recent kernels and create 64-bit regressions. 2014-10-29 23:18:27 -05:00
realview64-simple-atomic-checkpoint.py test, arm: Add scripts to test checkpoints 2015-03-19 04:06:20 -04:00
realview64-simple-atomic-dual.py arm, tests: Update config files to more recent kernels and create 64-bit regressions. 2014-10-29 23:18:27 -05:00
realview64-simple-atomic.py arm, tests: Update config files to more recent kernels and create 64-bit regressions. 2014-10-29 23:18:27 -05:00
realview64-simple-timing-dual.py arm, tests: Update config files to more recent kernels and create 64-bit regressions. 2014-10-29 23:18:27 -05:00
realview64-simple-timing.py arm, tests: Update config files to more recent kernels and create 64-bit regressions. 2014-10-29 23:18:27 -05:00
realview64-switcheroo-atomic.py arm, tests: Update config files to more recent kernels and create 64-bit regressions. 2014-10-29 23:18:27 -05:00
realview64-switcheroo-full.py arm, tests: Update config files to more recent kernels and create 64-bit regressions. 2014-10-29 23:18:27 -05:00
realview64-switcheroo-o3.py arm, tests: Update config files to more recent kernels and create 64-bit regressions. 2014-10-29 23:18:27 -05:00
realview64-switcheroo-timing.py arm, tests: Update config files to more recent kernels and create 64-bit regressions. 2014-10-29 23:18:27 -05:00
rubytest-ruby.py ruby: interface with classic memory controller 2014-11-06 05:42:21 -06:00
simple-atomic-dummychecker.py config: Add a BaseSESystem builder for re-use in regressions 2013-06-27 05:49:49 -04:00
simple-atomic-mp-ruby.py mem: Move crossbar default latencies to subclasses 2015-03-02 04:00:47 -05:00
simple-atomic-mp.py config: Add a BaseSESystem builder for re-use in regressions 2013-06-27 05:49:49 -04:00
simple-atomic.py config: Add a BaseSESystem builder for re-use in regressions 2013-06-27 05:49:49 -04:00
simple-timing-mp-ruby.py ruby: interface with classic memory controller 2014-11-06 05:42:21 -06:00
simple-timing-mp.py config: Add a BaseSESystem builder for re-use in regressions 2013-06-27 05:49:49 -04:00
simple-timing-ruby.py ruby: interface with classic memory controller 2014-11-06 05:42:21 -06:00
simple-timing.py config: Add a BaseSESystem builder for re-use in regressions 2013-06-27 05:49:49 -04:00
switcheroo.py sim: Decouple draining from the SimObject hierarchy 2015-07-07 09:51:05 +01:00
t1000-simple-atomic.py tests: Skip SPARC tests if the required binaries are missing 2015-07-07 09:51:03 +01:00
tgen-dram-ctrl.py mem: Move crossbar default latencies to subclasses 2015-03-02 04:00:47 -05:00
tgen-simple-mem.py mem: Move crossbar default latencies to subclasses 2015-03-02 04:00:47 -05:00
tsunami-minor-dual.py cpu: Minor CPU add regression tests for ARM and ALPHA 2014-07-23 16:09:05 -05:00
tsunami-minor.py cpu: Minor CPU add regression tests for ARM and ALPHA 2014-07-23 16:09:05 -05:00
tsunami-o3-dual.py config: Move the memory instantiation outside FSConfig 2013-08-19 03:52:27 -04:00
tsunami-o3.py config: Move the memory instantiation outside FSConfig 2013-08-19 03:52:27 -04:00
tsunami-simple-atomic-dual.py test: Use SimpleMemory for atomic full-system tests 2013-11-01 11:56:14 -04:00
tsunami-simple-atomic.py test: Use SimpleMemory for atomic full-system tests 2013-11-01 11:56:14 -04:00
tsunami-simple-timing-dual.py config: Move the memory instantiation outside FSConfig 2013-08-19 03:52:27 -04:00
tsunami-simple-timing.py config: Move the memory instantiation outside FSConfig 2013-08-19 03:52:27 -04:00
tsunami-switcheroo-full.py config: Move the memory instantiation outside FSConfig 2013-08-19 03:52:27 -04:00
twosys-tsunami-simple-atomic.py power: Add voltage domains to the clock domains 2013-08-19 03:52:28 -04:00
x86_generic.py mem: Allow read-only caches and check compliance 2015-07-03 10:14:39 -04:00