gem5/tests
Andreas Sandberg e5dca84c3f config: Move CPU handover logic to m5.switchCpus()
CPU switching consists of the following steps:
 1. Drain the system
 2. Switch out old CPUs (cpu.switchOut())
 3. Change the system timing mode to the mode the new CPUs require
 4. Flush caches if switching to hardware virtualization
 5. Inform new CPUs of the handover (cpu.takeOverFrom())
 6. Resume the system

m5.switchCpus() previously only did step 2 & 5. Since information
about the new processors' memory system requirements is now exposed,
do all of the steps above.

This patch adds automatic memory system switching and flush (if
needed) to switchCpus(). Additionally, it adds optional draining to
switchCpus(). This has the following implications:

* changeToTiming and changeToAtomic are no longer needed, so they have
  been removed.

* changeMemoryMode is only used internally, so it is has been renamed
  to be private.

* switchCpus requires a reference to the system containing the CPUs as
  its first parameter.

WARNING: This changeset breaks compatibility with existing
configuration scripts since it changes the signature of
m5.switchCpus().
2013-02-15 17:40:08 -05:00
..
configs config: Move CPU handover logic to m5.switchCpus() 2013-02-15 17:40:08 -05:00
long regressions: update stats due to changes to ruby 2013-02-10 21:43:23 -06:00
quick regressions: update stats due to changes to ruby 2013-02-10 21:43:23 -06:00
test-progs/hello X86: Add a 32 bit hello world test binary. 2012-05-27 19:01:09 -07:00
diff-out tests: fix diff-out script for op/inst stat changes. 2012-02-12 18:35:59 -06:00
halt.sh Rearrange the FS configs to be more shared. Also check in the full-system tests. Reference stats coming soon. 2006-07-21 15:56:35 -04:00
run.py tests: Add CPU switching tests 2013-01-07 13:05:52 -05:00
SConscript tests: Add CPU switching tests 2013-01-07 13:05:52 -05:00