summaryrefslogtreecommitdiff
path: root/src/dev
diff options
context:
space:
mode:
authorChris Emmons <chris.emmons@arm.com>2011-12-01 00:15:25 -0800
committerChris Emmons <chris.emmons@arm.com>2011-12-01 00:15:25 -0800
commit5bde1d359f0a0ce1d5ed46c3a9bb0ba33882f7b6 (patch)
tree348fc397dc9bb90a8233ce4f38bd0edd2dbbbcdd /src/dev
parent5d50ee420d78114e90ef4eb1207838d5eb153789 (diff)
downloadgem5-5bde1d359f0a0ce1d5ed46c3a9bb0ba33882f7b6.tar.xz
Output: Add hierarchical output support and cleanup existing codebase.
--HG-- extra : rebase_source : 3301137733cdf5fdb471d56ef7990e7a3a865442
Diffstat (limited to 'src/dev')
-rw-r--r--src/dev/terminal.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dev/terminal.cc b/src/dev/terminal.cc
index bae4c9194..74d5ddde7 100644
--- a/src/dev/terminal.cc
+++ b/src/dev/terminal.cc
@@ -102,6 +102,9 @@ Terminal::Terminal(const Params *p)
{
if (p->output) {
outfile = simout.find(p->name);
+ if (!outfile)
+ outfile = simout.create(p->name);
+
outfile->setf(ios::unitbuf);
}