diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2007-05-15 18:06:52 -0400 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2007-05-15 18:06:52 -0400 |
commit | f487edf146cdcbc3698cb8b496842641d52aba44 (patch) | |
tree | 0a75fdbbd7f1c55ab6f358b621896c58b507cb28 /configs/example/se.py | |
parent | 224ae7813dd307bf22132d723120ac2060b06afe (diff) | |
parent | 0934f259d66c7adcf8446e84a2ce7db739794064 (diff) | |
download | gem5-f487edf146cdcbc3698cb8b496842641d52aba44.tar.xz |
Merge zizzer:/bk/newmem
into zeep.pool:/z/saidi/work/m5.newmem
--HG--
extra : convert_revision : 32dc1bec7fdb1ecb8879ed2dd745c4b23929aeab
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) |