changeset 25181e8dd68e in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=25181e8dd68e
description:
        ruby: reordered Debug and RubyConfig::init to fix segfault
        due to uninitialized output file pointer.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/mem/ruby/init.cc |    2 +-

diffs (17 lines):

diff -r 5e0a261d57b8 -r 25181e8dd68e src/mem/ruby/init.cc
--- a/src/mem/ruby/init.cc      Mon May 11 10:38:46 2009 -0700
+++ b/src/mem/ruby/init.cc      Mon May 11 10:38:46 2009 -0700
@@ -84,12 +84,12 @@
 
     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;
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to