ruby: reordered Debug and RubyConfig::init to fix segfault
due to uninitialized output file pointer.
This commit is contained in:
parent
8cbf8df5b7
commit
9f34659c52
|
@ -84,12 +84,12 @@ void init_simulator()
|
||||||
|
|
||||||
cout << "Ruby Timing Mode" << endl;
|
cout << "Ruby Timing Mode" << endl;
|
||||||
|
|
||||||
RubyConfig::init();
|
|
||||||
|
|
||||||
g_debug_ptr = new Debug( DEBUG_FILTER_STRING,
|
g_debug_ptr = new Debug( DEBUG_FILTER_STRING,
|
||||||
DEBUG_VERBOSITY_STRING,
|
DEBUG_VERBOSITY_STRING,
|
||||||
DEBUG_START_TIME,
|
DEBUG_START_TIME,
|
||||||
DEBUG_OUTPUT_FILENAME );
|
DEBUG_OUTPUT_FILENAME );
|
||||||
|
RubyConfig::init();
|
||||||
|
|
||||||
cout << "Creating event queue..." << endl;
|
cout << "Creating event queue..." << endl;
|
||||||
g_eventQueue_ptr = new RubyEventQueue;
|
g_eventQueue_ptr = new RubyEventQueue;
|
||||||
|
|
Loading…
Reference in a new issue