ruby: config bugfix
authorDerek Hower <drh5@cs.wisc.edu>
Thu, 13 Aug 2009 15:37:09 +0000 (10:37 -0500)
committerDerek Hower <drh5@cs.wisc.edu>
Thu, 13 Aug 2009 15:37:09 +0000 (10:37 -0500)
src/mem/ruby/config/cfg.rb

index 82f0d27766488a8162834e2b26bcdefdfc1b1902..4142bc964879e5d249a6d59c78ce4be981a7b0b2 100644 (file)
@@ -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]