ruby: added -A option to TwoLevel_SplitL1UnifiedL2 to set the L1 cache size
authorDerek Hower <drh5@cs.wisc.edu>
Fri, 13 Nov 2009 15:45:23 +0000 (09:45 -0600)
committerDerek Hower <drh5@cs.wisc.edu>
Fri, 13 Nov 2009 15:45:23 +0000 (09:45 -0600)
src/mem/ruby/config/TwoLevel_SplitL1UnifiedL2.rb

index 863c17e81e7fe4419b361f2603bdb62f71d66a9c..a4a1982f4b9670836653a13fa61d533f04d9b05a 100644 (file)
@@ -35,6 +35,9 @@ for i in 0..$*.size-1 do
   if $*[i] == "-c" or $*[i] == "--protocol"
     i += 1
     protocol = $*[i]
+  elsif $*[i] == "-A"
+    l1_dcache_size_kb = $*[i+1].to_i
+    i = i+1
   elsif $*[i] == "-B"
     num_l2_banks = $*[i+1].to_i
     i = i+1