gem5/src/cpu/simple
Andreas Sandberg b904bd5437 sim: Add a system-global option to bypass caches
Virtualized CPUs and the fastmem mode of the atomic CPU require direct
access to physical memory. We currently require caches to be disabled
when using them to prevent chaos. This is not ideal when switching
between hardware virutalized CPUs and other CPU models as it would
require a configuration change on each switch. This changeset
introduces a new version of the atomic memory mode,
'atomic_noncaching', where memory accesses are inserted into the
memory system as atomic accesses, but bypass caches.

To make memory mode tests cleaner, the following methods are added to
the System class:

 * isAtomicMode() -- True if the memory mode is 'atomic' or 'direct'.
 * isTimingMode() -- True if the memory mode is 'timing'.
 * bypassCaches() -- True if caches should be bypassed.

The old getMemoryMode() and setMemoryMode() methods should never be
used from the C++ world anymore.
2013-02-15 17:40:09 -05:00
..
atomic.cc sim: Add a system-global option to bypass caches 2013-02-15 17:40:09 -05:00
atomic.hh cpu: Refactor memory system checks 2013-02-15 17:40:08 -05:00
AtomicSimpleCPU.py cpu: Add CPU metadata om the Python classes 2013-02-15 17:40:08 -05:00
base.cc base simple cpu: removes commented out code about cache ops 2013-01-12 22:11:16 -06:00
base.hh x86: Changes to decoder, corrects 9376 2013-01-12 22:09:48 -06:00
BaseSimpleCPU.py sim: Include object header files in SWIG interfaces 2012-11-02 11:32:01 -05:00
SConscript scons: rename TraceFlags to DebugFlags 2011-06-02 17:36:21 -07:00
SConsopts cpu_models: get rid of cpu_models.py and move the stuff into SCons 2010-02-26 18:14:48 -08:00
timing.cc sim: Add a system-global option to bypass caches 2013-02-15 17:40:09 -05:00
timing.hh cpu: Refactor memory system checks 2013-02-15 17:40:08 -05:00
TimingSimpleCPU.py cpu: Add CPU metadata om the Python classes 2013-02-15 17:40:08 -05:00