summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2005-11-21 00:22:29 -0500
committerNathan Binkert <binkertn@umich.edu>2005-11-21 00:22:29 -0500
commitd3a4781ac523adb8bbe17c8ae0aaaf1c06cfe286 (patch)
tree6a6417a3dd7593140b1e7168e47f7440b344d5a0
parentc4678ece8414230005e7a9e41e50e48c1bba66d7 (diff)
downloadgem5-d3a4781ac523adb8bbe17c8ae0aaaf1c06cfe286.tar.xz
Actually, you should'nt do math on Clock in the config files.
python/m5/config.py: Clock should not be a NumericParamValue since math on it can be ambiguous. (As the comment clearly says.) --HG-- extra : convert_revision : 74f8ec846c6a980d92e0bf4bf1c7fac73a75b923
-rw-r--r--python/m5/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/m5/config.py b/python/m5/config.py
index a954012ea..1e25e0d09 100644
--- a/python/m5/config.py
+++ b/python/m5/config.py
@@ -1240,7 +1240,7 @@ class RootClock(ParamValue):
# A generic frequency and/or Latency value. Value is stored as a latency,
# but to avoid ambiguity this object does not support numeric ops (* or /).
# An explicit conversion to a Latency or Frequency must be made first.
-class Clock(NumericParamValue):
+class Clock(ParamValue):
def __init__(self, value):
self.value = getLatency(value)