From: Derek Hower Date: Thu, 13 Aug 2009 15:37:09 +0000 (-0500) Subject: ruby: config bugfix X-Git-Tag: Calvin_Submission~142^2~5^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=db40cb8f519259fb30128f7262fba5270424c7f8;p=gem5.git ruby: config bugfix --- 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]