From: Polina Dudnik Date: Mon, 11 May 2009 17:38:46 +0000 (-0700) Subject: ruby: reordered Debug and RubyConfig::init to fix segfault X-Git-Tag: Calvin_Submission~336^2~14 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f34659c52e0ea9095e86d82ac87a9c3d4d0f25a;p=gem5.git ruby: reordered Debug and RubyConfig::init to fix segfault due to uninitialized output file pointer. --- 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;