summaryrefslogtreecommitdiff
path: root/src/mem
diff options
context:
space:
mode:
authorPolina Dudnik <pdudnik@gmail.com>2009-05-11 10:38:46 -0700
committerPolina Dudnik <pdudnik@gmail.com>2009-05-11 10:38:46 -0700
commit9f34659c52e0ea9095e86d82ac87a9c3d4d0f25a (patch)
tree962996a0b98e2ab78909cd59da86a1cedd492f52 /src/mem
parent8cbf8df5b7a04f4105cf7058a3a8709f77e91d16 (diff)
downloadgem5-9f34659c52e0ea9095e86d82ac87a9c3d4d0f25a.tar.xz
ruby: reordered Debug and RubyConfig::init to fix segfault
due to uninitialized output file pointer.
Diffstat (limited to 'src/mem')
-rw-r--r--src/mem/ruby/init.cc2
1 files changed, 1 insertions, 1 deletions
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;