From: Andreas Hansson Date: Thu, 27 Jun 2013 09:49:50 +0000 (-0400) Subject: config: Remove Clock parameter multiplication X-Git-Tag: stable_2013_10_14~10 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0e551869c53d8fd0c8e3969521a2c732ad762b3;p=gem5.git config: Remove Clock parameter multiplication This patch removes the multiplication operator support for Clock parameters as this functionality is now achieved by creating derived clock domains. Nate, this one is for you. --- diff --git a/src/python/m5/params.py b/src/python/m5/params.py index fdd22dac0..995c66de5 100644 --- a/src/python/m5/params.py +++ b/src/python/m5/params.py @@ -1244,14 +1244,6 @@ class Clock(ParamValue): return Latency(self) raise AttributeError, "Frequency object has no attribute '%s'" % attr - def __mul__(self, other): - # Always treat the clock as a period when scaling - newobj = self.__class__(self) - newobj.value *= other - return newobj - - __rmul__ = __mul__ - def getValue(self): return self.period.getValue()