From cb9fa244036772fc1d2c73fa2f4b10e98cd6e17a Mon Sep 17 00:00:00 2001 From: Srikant Bharadwaj Date: Fri, 16 Nov 2018 14:24:43 -0500 Subject: sim: Fix data type of ticks per second before passing it to C++ Casts ticks per second value to int before passing it to C++. Python throws an error because of incompatible type because of the recent change. Change-Id: Ibcaf8c327f1be0dba38763975d389584addd8373 Reviewed-on: https://gem5-review.googlesource.com/c/14375 Reviewed-by: Gabe Black Maintainer: Gabe Black --- src/python/m5/ticks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/m5/ticks.py b/src/python/m5/ticks.py index fe258421e..e4b5eac7e 100644 --- a/src/python/m5/ticks.py +++ b/src/python/m5/ticks.py @@ -49,7 +49,7 @@ def setGlobalFrequency(ticksPerSecond): else: raise TypeError, \ "wrong type '%s' for ticksPerSecond" % type(ticksPerSecond) - _m5.core.setClockFrequency(tps) + _m5.core.setClockFrequency(int(tps)) # how big does a rounding error need to be before we warn about it? frequency_tolerance = 0.001 # 0.1% -- cgit v1.2.3