gem5/configs/common
Andreas Hansson 654266f39c mem: Add cache clusivity
This patch adds a parameter to control the cache clusivity, that is if
the cache is mostly inclusive or exclusive. At the moment there is no
intention to support strict policies, and thus the options are: 1)
mostly inclusive, or 2) mostly exclusive.

The choice of policy guides the behaviuor on a cache fill, and a new
helper function, allocOnFill, is created to encapsulate the decision
making process. For the timing mode, the decision is annotated on the
MSHR on sending out the downstream packet, and in atomic we directly
pass the decision to handleFill. We (ab)use the tempBlock in cases
where we are not allocating on fill, leaving the rest of the cache
unaffected. Simple and effective.

This patch also makes it more explicit that multiple caches are
allowed to consider a block writable (this is the case
also before this patch). That is, for a mostly inclusive cache,
multiple caches upstream may also consider the block exclusive. The
caches considering the block writable/exclusive all appear along the
same path to memory, and from a coherency protocol point of view it
works due to the fact that we always snoop upwards in zero time before
querying any downstream cache.

Note that this patch does not introduce clean writebacks. Thus, for
clean lines we are essentially removing a cache level if it is made
mostly exclusive. For example, lines from the read-only L1 instruction
cache or table-walker cache are always clean, and simply get dropped
rather than being passed to the L2. If the L2 is mostly exclusive and
does not allocate on fill it will thus never hold the line. A follow
on patch adds the clean writebacks.

The patch changes the L2 of the O3_ARM_v7a CPU configuration to be
mostly exclusive (and stats are affected accordingly).
2015-11-06 03:26:41 -05:00
..
Benchmarks.py config: Specify OS type and release on command line 2015-03-19 04:06:14 -04:00
CacheConfig.py mem: Allow read-only caches and check compliance 2015-07-03 10:14:39 -04:00
Caches.py mem: Add explicit Cache subclass and make BaseCache abstract 2015-08-21 07:03:23 -04:00
cpu2000.py arm: Add support for ARMv8 (AArch64 & AArch32) 2014-01-24 15:29:34 -06:00
CpuConfig.py kvm, arm: Add support for aarch64 2015-06-01 19:44:19 +01:00
FSConfig.py sparc: add missing parameter to makeSparcSystem() 2015-11-03 12:17:55 -06:00
HMC.py configs: fix bug introduced due to 276ad9121192 2015-11-04 12:36:28 -06:00
MemConfig.py mem: hmc: top level design 2015-11-03 12:17:56 -06:00
O3_ARM_v7a.py mem: Add cache clusivity 2015-11-06 03:26:41 -05:00
Options.py misc: Coupling gem5 with SystemC TLM2.0 2015-08-03 23:08:40 -05:00
SimpleOpts.py config: Add configs scripts used in Learning gem5 2015-09-16 09:35:36 -05:00
Simulation.py config, cpu: fix progress interval for switched CPUs 2015-04-14 11:01:10 -05:00
SysPaths.py config: expand '~' and '~user' in paths 2015-03-23 16:14:19 -07:00