summaryrefslogtreecommitdiff
path: root/python/m5/config.py
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2005-04-07 16:34:02 -0400
committerKevin Lim <ktlim@umich.edu>2005-04-07 16:34:02 -0400
commitdcedd7866e35adc1e0fbc081188b259ffc7bbdf5 (patch)
treefee54c1dcea007dc2e1256b8b56e87d812c5fd3d /python/m5/config.py
parentd261ee86c461a5feaefb432a54d56e2a393f4081 (diff)
parent9f2568f966a0ce36bfd7b3114aac1fcf419566c4 (diff)
downloadgem5-dcedd7866e35adc1e0fbc081188b259ffc7bbdf5.tar.xz
Hand merge
base/traceflags.py: Include new flags --HG-- extra : convert_revision : 8017cbe256860dce8b1efc1b4e1e81e883895b90
Diffstat (limited to 'python/m5/config.py')
-rw-r--r--python/m5/config.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/python/m5/config.py b/python/m5/config.py
index a791bbebf..e260c57a7 100644
--- a/python/m5/config.py
+++ b/python/m5/config.py
@@ -1140,10 +1140,12 @@ 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
+class Percent(CheckedInt): cppname = 'int'; min = 0; max = 100
class MemorySize(CheckedInt):
cppname = 'uint64_t'
@@ -1283,7 +1285,7 @@ class NullSimObject(object):
pass
def _convert(cls, value):
- if value == Nxone:
+ if value == None:
return
if isinstance(value, cls):