From 9f34659c52e0ea9095e86d82ac87a9c3d4d0f25a Mon Sep 17 00:00:00 2001 From: Polina Dudnik Date: Mon, 11 May 2009 10:38:46 -0700 Subject: [PATCH] ruby: reordered Debug and RubyConfig::init to fix segfault due to uninitialized output file pointer. --- src/mem/ruby/init.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mem/ruby/init.cc b/src/mem/ruby/init.cc index ae81dfc57..6e29b1a41 100644 --- a/src/mem/ruby/init.cc +++ b/src/mem/ruby/init.cc @@ -84,12 +84,12 @@ void init_simulator() cout << "Ruby Timing Mode" << endl; - RubyConfig::init(); g_debug_ptr = new Debug( DEBUG_FILTER_STRING, DEBUG_VERBOSITY_STRING, DEBUG_START_TIME, DEBUG_OUTPUT_FILENAME ); + RubyConfig::init(); cout << "Creating event queue..." << endl; g_eventQueue_ptr = new RubyEventQueue; -- 2.30.2