diff options
Diffstat (limited to 'src/cpu/o3')
-rw-r--r-- | src/cpu/o3/thread_state.hh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cpu/o3/thread_state.hh b/src/cpu/o3/thread_state.hh index 19235c44c..7765f86ea 100644 --- a/src/cpu/o3/thread_state.hh +++ b/src/cpu/o3/thread_state.hh @@ -144,8 +144,10 @@ struct O3ThreadState : public ThreadState { void dumpFuncProfile() { - std::ostream *os = simout.create(csprintf("profile.%s.dat", cpu->name())); - profile->dump(tc, *os); + OutputStream *os( + simout.create(csprintf("profile.%s.dat", cpu->name()))); + profile->dump(tc, *os->stream()); + simout.close(os); } }; |