Add TcpPort and UdpPort as python types
python/m5/objects/SimConsole.mpy: the listener port is a TcpPort --HG-- extra : convert_revision : c26fdd93d3bc35d9f1563ac1087a7f75471c9020
This commit is contained in:
parent
b82bd61946
commit
6d412f63a3
|
@ -1140,8 +1140,10 @@ class UInt32(CheckedInt): cppname = 'uint32_t'; size = 32; unsigned = True
|
||||||
class Int64(CheckedInt): cppname = 'int64_t'; size = 64; unsigned = False
|
class Int64(CheckedInt): cppname = 'int64_t'; size = 64; unsigned = False
|
||||||
class UInt64(CheckedInt): cppname = 'uint64_t'; size = 64; unsigned = True
|
class UInt64(CheckedInt): cppname = 'uint64_t'; size = 64; unsigned = True
|
||||||
|
|
||||||
class Counter(CheckedInt): cppname = 'Counter'; size = 64; unsigned = True
|
class Counter(CheckedInt): cppname = 'Counter'; size = 64; unsigned = True
|
||||||
class Tick(CheckedInt): cppname = 'Tick'; size = 64; unsigned = True
|
class Tick(CheckedInt): cppname = 'Tick'; size = 64; unsigned = True
|
||||||
|
class TcpPort(CheckedInt): cppname = 'uint16_t'; size = 16; unsigned = True
|
||||||
|
class UdpPort(CheckedInt): cppname = 'uint16_t'; size = 16; unsigned = True
|
||||||
|
|
||||||
class Percent(CheckedInt): cppname = 'int'; min = 0; max = 100
|
class Percent(CheckedInt): cppname = 'int'; min = 0; max = 100
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
simobj ConsoleListener(SimObject):
|
simobj ConsoleListener(SimObject):
|
||||||
type = 'ConsoleListener'
|
type = 'ConsoleListener'
|
||||||
port = Param.UInt16(3456, "listen port")
|
port = Param.TcpPort(3456, "listen port")
|
||||||
|
|
||||||
simobj SimConsole(SimObject):
|
simobj SimConsole(SimObject):
|
||||||
type = 'SimConsole'
|
type = 'SimConsole'
|
||||||
|
|
Loading…
Reference in a new issue