summaryrefslogtreecommitdiff
path: root/python/m5/config.py
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2005-04-06 17:05:30 -0400
committerNathan Binkert <binkertn@umich.edu>2005-04-06 17:05:30 -0400
commit6d412f63a321ae1bd4247d9fdc0d4c34159d741c (patch)
tree19bd64c4950a0ca762944c5ed9da59d503a2b861 /python/m5/config.py
parentb82bd61946caf14b9f62c614562d457fb073241d (diff)
downloadgem5-6d412f63a321ae1bd4247d9fdc0d4c34159d741c.tar.xz
Add TcpPort and UdpPort as python types
python/m5/objects/SimConsole.mpy: the listener port is a TcpPort --HG-- extra : convert_revision : c26fdd93d3bc35d9f1563ac1087a7f75471c9020
Diffstat (limited to 'python/m5/config.py')
-rw-r--r--python/m5/config.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/m5/config.py b/python/m5/config.py
index a791bbebf..e744b9ffb 100644
--- a/python/m5/config.py
+++ b/python/m5/config.py
@@ -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 UInt64(CheckedInt): cppname = 'uint64_t'; size = 64; unsigned = True
-class Counter(CheckedInt): cppname = 'Counter'; size = 64; unsigned = True
-class Tick(CheckedInt): cppname = 'Tick'; size = 64; unsigned = True
+class Counter(CheckedInt): cppname = 'Counter'; 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