projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cbf8df
)
ruby: reordered Debug and RubyConfig::init to fix segfault
author
Polina Dudnik
<pdudnik@gmail.com>
Mon, 11 May 2009 17:38:46 +0000
(10:38 -0700)
committer
Polina Dudnik
<pdudnik@gmail.com>
Mon, 11 May 2009 17:38:46 +0000
(10:38 -0700)
due to uninitialized output file pointer.
src/mem/ruby/init.cc
patch
|
blob
|
history
diff --git
a/src/mem/ruby/init.cc
b/src/mem/ruby/init.cc
index ae81dfc5712f2ab770ffdb8ba63e88da5994e10a..6e29b1a416ea94d16930c8f779156d63455210b4 100644
(file)
--- 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;