summaryrefslogtreecommitdiff
path: root/src/mem
diff options
context:
space:
mode:
authorDerek Hower <drh5@cs.wisc.edu>2009-08-13 10:37:09 -0500
committerDerek Hower <drh5@cs.wisc.edu>2009-08-13 10:37:09 -0500
commitdb40cb8f519259fb30128f7262fba5270424c7f8 (patch)
treed9750e8548333ba0b116d8c91d350c776639bde8 /src/mem
parent1c3efb48ad6658bb9c92682ab8bac12fd69b8a9f (diff)
downloadgem5-db40cb8f519259fb30128f7262fba5270424c7f8.tar.xz
ruby: config bugfix
Diffstat (limited to 'src/mem')
-rw-r--r--src/mem/ruby/config/cfg.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/ruby/config/cfg.rb b/src/mem/ruby/config/cfg.rb
index 82f0d2776..4142bc964 100644
--- a/src/mem/ruby/config/cfg.rb
+++ b/src/mem/ruby/config/cfg.rb
@@ -309,7 +309,7 @@ class CacheController < NetPort
cache.controller = self
}
- if !@@total_cache_controllers.has_key?(mach_type)
+ if !@@total_cache_controllers.key?(mach_type)
@@total_cache_controllers[mach_type] = 0
end
@version = @@total_cache_controllers[mach_type]