diff options
author | Chris Emmons <chris.emmons@arm.com> | 2011-12-01 00:15:25 -0800 |
---|---|---|
committer | Chris Emmons <chris.emmons@arm.com> | 2011-12-01 00:15:25 -0800 |
commit | 5bde1d359f0a0ce1d5ed46c3a9bb0ba33882f7b6 (patch) | |
tree | 348fc397dc9bb90a8233ce4f38bd0edd2dbbbcdd /src/base/stats | |
parent | 5d50ee420d78114e90ef4eb1207838d5eb153789 (diff) | |
download | gem5-5bde1d359f0a0ce1d5ed46c3a9bb0ba33882f7b6.tar.xz |
Output: Add hierarchical output support and cleanup existing codebase.
--HG--
extra : rebase_source : 3301137733cdf5fdb471d56ef7990e7a3a865442
Diffstat (limited to 'src/base/stats')
-rw-r--r-- | src/base/stats/text.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/base/stats/text.cc b/src/base/stats/text.cc index f8471f1a1..683ba7fe4 100644 --- a/src/base/stats/text.cc +++ b/src/base/stats/text.cc @@ -674,7 +674,11 @@ initText(const string &filename, bool desc) static bool connected = false; if (!connected) { - text.open(*simout.find(filename)); + ostream *os = simout.find(filename); + if (!os) + os = simout.create(filename); + + text.open(*os); text.descriptions = desc; connected = true; } |