summaryrefslogtreecommitdiff
path: root/src/mem/ruby
diff options
context:
space:
mode:
authorDerek Hower <drh5@cs.wisc.edu>2009-10-16 16:31:16 -0500
committerDerek Hower <drh5@cs.wisc.edu>2009-10-16 16:31:16 -0500
commit909bac684044e280de83bab2a7c5b4f51d02b0c5 (patch)
tree690d2aa2f37eb76e908b2de2efd3de883837652a /src/mem/ruby
parent45052162821bf3da71322302a7aeb758b5e0901c (diff)
downloadgem5-909bac684044e280de83bab2a7c5b4f51d02b0c5.tar.xz
ruby: add parameter to config to set # of l2 banks
Diffstat (limited to 'src/mem/ruby')
-rw-r--r--src/mem/ruby/config/TwoLevel_SplitL1UnifiedL2.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mem/ruby/config/TwoLevel_SplitL1UnifiedL2.rb b/src/mem/ruby/config/TwoLevel_SplitL1UnifiedL2.rb
index c3c92bd9d..863c17e81 100644
--- a/src/mem/ruby/config/TwoLevel_SplitL1UnifiedL2.rb
+++ b/src/mem/ruby/config/TwoLevel_SplitL1UnifiedL2.rb
@@ -12,13 +12,13 @@ RubySystem.reset
# default values
num_cores = 2
-l1_icache_size_kb = 32
+l1_icache_size_kb = 64
l1_icache_assoc = 8
l1_icache_latency = 1
l1_dcache_size_kb = 32
l1_dcache_assoc = 8
l1_dcache_latency = 1
-l2_cache_size_kb = 2048 # total size (sum of all banks)
+l2_cache_size_kb = 8192 # total size (sum of all banks)
l2_cache_assoc = 16
l2_cache_latency = 12
num_l2_banks = num_cores
@@ -35,6 +35,9 @@ for i in 0..$*.size-1 do
if $*[i] == "-c" or $*[i] == "--protocol"
i += 1
protocol = $*[i]
+ elsif $*[i] == "-B"
+ num_l2_banks = $*[i+1].to_i
+ i = i+1
elsif $*[i] == "-m"
num_memories = $*[i+1].to_i
i = i+1