diff options
Diffstat (limited to 'src/dev')
-rw-r--r-- | src/dev/Terminal.py | 3 | ||||
-rw-r--r-- | src/dev/terminal.cc | 8 |
2 files changed, 3 insertions, 8 deletions
diff --git a/src/dev/Terminal.py b/src/dev/Terminal.py index 3d97070ba..d67019198 100644 --- a/src/dev/Terminal.py +++ b/src/dev/Terminal.py @@ -32,8 +32,7 @@ from m5.proxy import * class Terminal(SimObject): type = 'Terminal' - append_name = Param.Bool(True, "append name() to filename") intr_control = Param.IntrControl(Parent.any, "interrupt controller") port = Param.TcpPort(3456, "listen port") number = Param.Int(0, "terminal number") - output = Param.String('console', "file to dump output to") + output = Param.Bool(True, "Enable output dump to file") diff --git a/src/dev/terminal.cc b/src/dev/terminal.cc index 18c9945bc..47f280ad3 100644 --- a/src/dev/terminal.cc +++ b/src/dev/terminal.cc @@ -97,12 +97,8 @@ Terminal::Terminal(const Params *p) , linebuf(16384) #endif { - if (!p->output.empty()) { - if (p->append_name) - outfile = simout.find(p->output + "." + p->name); - else - outfile = simout.find(p->output); - + if (p->output) { + outfile = simout.find(p->name); outfile->setf(ios::unitbuf); } |