Change the default output filename for the terminal so it's more obvious.
--HG-- rename : tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-atomic-dual/console.system.sim_console => tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-atomic-dual/system.terminal rename : tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-atomic/console.system.sim_console => tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-atomic/system.terminal rename : tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-timing-dual/console.system.sim_console => tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-timing-dual/system.terminal rename : tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-timing/console.system.sim_console => tests/quick/10.linux-boot/ref/alpha/linux/tsunami-simple-timing/system.terminal rename : tests/quick/80.netperf-stream/ref/alpha/linux/twosys-tsunami-simple-atomic/console.drivesys.sim_console => tests/quick/80.netperf-stream/ref/alpha/linux/twosys-tsunami-simple-atomic/drivesys.terminal rename : tests/quick/80.netperf-stream/ref/alpha/linux/twosys-tsunami-simple-atomic/console.testsys.sim_console => tests/quick/80.netperf-stream/ref/alpha/linux/twosys-tsunami-simple-atomic/testsys.terminal
This commit is contained in:
parent
00df9016fe
commit
6ff4539901
8 changed files with 3 additions and 8 deletions
|
@ -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")
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue