python: Manually convert float to int when using %x
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 5 May 2020 09:38:10 +0000 (10:38 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 6 May 2020 08:15:15 +0000 (08:15 +0000)
commit38e7427ea7aec120ac8ffdf72918c549151f2e96
tree413abf7be2d00e7d6b83fab7af8add6f8070bbee
parent58a797d36c7b3b2768c1400d4aa45a8c126d6343
python: Manually convert float to int when using %x

This is required by python3.5 which is not allowing a
floating point value to be printed in hex and will trigger
a TypeError assertion:

TypeError: %X format: an integer is required, not float

Change-Id: I2033366751924579cc87e7fccda8fdb33a31412d
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/28607
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/python/m5/util/dot_writer.py