diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2007-05-15 18:06:35 -0400 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2007-05-15 18:06:35 -0400 |
commit | 0934f259d66c7adcf8446e84a2ce7db739794064 (patch) | |
tree | 9945e8007a3b7e8edfe1d425148d5bdb919e53f6 /configs/example/se.py | |
parent | f317227b4e5002b2c9d7c2e5068d317dcea5b0f9 (diff) | |
download | gem5-0934f259d66c7adcf8446e84a2ce7db739794064.tar.xz |
add an l2 cache option to se example config
configs/common/Options.py:
configs/example/fs.py:
move l2 cache option to Options.py
--HG--
extra : convert_revision : 5c0071c2827f7db6d56229d5276326364b50f0c8
Diffstat (limited to 'configs/example/se.py')
-rw-r--r-- | configs/example/se.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/configs/example/se.py b/configs/example/se.py index 0944a030e..b294480f6 100644 --- a/configs/example/se.py +++ b/configs/example/se.py @@ -1,4 +1,4 @@ -# Copyright (c) 2006 The Regents of The University of Michigan +# Copyright (c) 2006-2007 The Regents of The University of Michigan # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -104,7 +104,14 @@ for i in xrange(np): if options.caches: system.cpu[i].addPrivateSplitL1Caches(L1Cache(size = '32kB'), L1Cache(size = '64kB')) - system.cpu[i].connectMemPorts(system.membus) + if options.l2cache: + system.l2 = L2Cache(size='2MB') + system.tol2bus = Bus() + system.l2.cpu_side = system.tol2bus.port + system.l2.mem_side = system.membus.port + system.cpu[i].connectMemPorts(system.tol2bus) + else: + system.cpu[i].connectMemPorts(system.membus) system.cpu[i].workload = process root = Root(system = system) |