relevant code directly into the SimConsole object. Now, you can easily turn off the listen port by just specifying 0 as the port. --HG-- extra : convert_revision : c8937fa45b429d8a0728e6c720a599e38972aaf0
12 lines
426 B
Python
12 lines
426 B
Python
from m5.SimObject import SimObject
|
|
from m5.params import *
|
|
from m5.proxy import *
|
|
|
|
class SimConsole(SimObject):
|
|
type = 'SimConsole'
|
|
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, "console number")
|
|
output = Param.String('console', "file to dump output to")
|