summaryrefslogtreecommitdiff
path: root/configs/common/CacheConfig.py
diff options
context:
space:
mode:
authorKorey Sewell <ksewell@umich.edu>2011-02-23 14:26:55 -0500
committerKorey Sewell <ksewell@umich.edu>2011-02-23 14:26:55 -0500
commit981e1dd7eea3661cc2a0f99e783459bdc9fe5bd9 (patch)
tree92203e955638b661e07c28d4d60f86208a9e84cd /configs/common/CacheConfig.py
parentfb9257841559f589cd9369a210715106239917fe (diff)
downloadgem5-981e1dd7eea3661cc2a0f99e783459bdc9fe5bd9.tar.xz
configs: cache: add cache line size option
Diffstat (limited to 'configs/common/CacheConfig.py')
-rw-r--r--configs/common/CacheConfig.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/configs/common/CacheConfig.py b/configs/common/CacheConfig.py
index 233f504bc..00517dfc4 100644
--- a/configs/common/CacheConfig.py
+++ b/configs/common/CacheConfig.py
@@ -35,7 +35,8 @@ from Caches import *
def config_cache(options, system):
if options.l2cache:
- system.l2 = L2Cache(size = options.l2_size, assoc = options.l2_assoc)
+ system.l2 = L2Cache(size = options.l2_size, assoc = options.l2_assoc,
+ block_size=options.cacheline_size)
system.tol2bus = Bus()
system.l2.cpu_side = system.tol2bus.port
system.l2.mem_side = system.membus.port
@@ -43,8 +44,10 @@ def config_cache(options, system):
for i in xrange(options.num_cpus):
if options.caches:
- icache = L1Cache(size = options.l1i_size, assoc = options.l1i_assoc)
- dcache = L1Cache(size = options.l1d_size, assoc = options.l1d_assoc)
+ icache = L1Cache(size = options.l1i_size, assoc = options.l1i_assoc,
+ block_size=options.cacheline_size)
+ dcache = L1Cache(size = options.l1d_size, assoc = options.l1d_assoc,
+ block_size=options.cacheline_size)
if buildEnv['TARGET_ISA'] == 'x86':
system.cpu[i].addPrivateSplitL1Caches(icache, dcache,
PageTableWalkerCache(),