From db40cb8f519259fb30128f7262fba5270424c7f8 Mon Sep 17 00:00:00 2001 From: Derek Hower Date: Thu, 13 Aug 2009 10:37:09 -0500 Subject: [PATCH] ruby: config bugfix --- src/mem/ruby/config/cfg.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.30.2