diff options
author | Ali Saidi <Ali.Saidi@ARM.com> | 2011-12-01 17:36:22 -0800 |
---|---|---|
committer | Ali Saidi <Ali.Saidi@ARM.com> | 2011-12-01 17:36:22 -0800 |
commit | 9b52717a92ed9592bd98a41683509f538262a5c7 (patch) | |
tree | eeca2802b9bd9f75614d39c08332faf6a02da843 /src/base | |
parent | cb6ea0492fce72920fb71ed7fa7a85c740cbe945 (diff) | |
download | gem5-9b52717a92ed9592bd98a41683509f538262a5c7.tar.xz |
Trace: FIx issue with creation of trace file with output dir overhaul.
--HG--
extra : rebase_source : c1ab57ea8805703d97cdee4f32410821a2d2a9db
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/trace.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base/trace.cc b/src/base/trace.cc index 1a035d400..fa55e42a9 100644 --- a/src/base/trace.cc +++ b/src/base/trace.cc @@ -64,6 +64,8 @@ void setOutput(const string &filename) { dprintf_stream = simout.find(filename); + if (!dprintf_stream) + dprintf_stream = simout.create(filename); } ObjectMatch ignore; |