Srikant Bharadwaj has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/14375

Change subject: sim: Fix data type of ticks per second before passing it to C++
......................................................................

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
---
M src/python/m5/ticks.py
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/src/python/m5/ticks.py b/src/python/m5/ticks.py
index fe25842..e4b5eac 100644
--- a/src/python/m5/ticks.py
+++ b/src/python/m5/ticks.py
@@ -49,7 +49,7 @@
     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%

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/14375
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Ibcaf8c327f1be0dba38763975d389584addd8373
Gerrit-Change-Number: 14375
Gerrit-PatchSet: 1
Gerrit-Owner: Srikant Bharadwaj <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to