diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2011-11-07 01:13:43 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2011-11-07 01:13:43 -0800 |
commit | 71c4534ce96b8b663a1f35ee98dd19c0438f5fde (patch) | |
tree | 5a2250d0bdc885b14e129e84b79cf14935d8288f /src/mem/cache/base.hh | |
parent | 812277ac6aeb16397d4c0c76cca0ebe6969cd87d (diff) | |
download | gem5-71c4534ce96b8b663a1f35ee98dd19c0438f5fde.tar.xz |
SE/FS: Get rid of FULL_SYSTEM in mem.
Diffstat (limited to 'src/mem/cache/base.hh')
-rw-r--r-- | src/mem/cache/base.hh | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mem/cache/base.hh b/src/mem/cache/base.hh index 297692b32..eaab2494e 100644 --- a/src/mem/cache/base.hh +++ b/src/mem/cache/base.hh @@ -57,6 +57,7 @@ #include "mem/tport.hh" #include "params/BaseCache.hh" #include "sim/eventq.hh" +#include "sim/full_system.hh" #include "sim/sim_exit.hh" class MSHR; @@ -505,12 +506,10 @@ class BaseCache : public MemObject * available, meanwhile writeback hit/miss stats are not used * in any aggregate hit/miss calculations, so just lump them all * in bucket 0 */ -#if FULL_SYSTEM - } else if (id == -1) { + } else if (FullSystem && id == -1) { // Device accesses have id -1 // lump device accesses into their own bucket misses[pkt->cmdToIndex()][_numCpus]++; -#endif } else { misses[pkt->cmdToIndex()][id % _numCpus]++; } @@ -533,12 +532,10 @@ class BaseCache : public MemObject if (pkt->cmd == MemCmd::Writeback) { assert(id == -1); hits[pkt->cmdToIndex()][0]++; -#if FULL_SYSTEM - } else if (id == -1) { + } else if (FullSystem && id == -1) { // Device accesses have id -1 // lump device accesses into their own bucket hits[pkt->cmdToIndex()][_numCpus]++; -#endif } else { /* the % is necessary in case there are switch cpus */ hits[pkt->cmdToIndex()][id % _numCpus]++; |