arch-arm: python3 "/" will always produce a float
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Mon, 2 Mar 2020 11:56:45 +0000 (11:56 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 10 Mar 2020 09:35:56 +0000 (09:35 +0000)
commit41df2f8b26e39d851c6f53eed956f963ce28925b
treeaff5b0696ae698900e5e57045ea2e3bd28dc63f9
parent656b18a414b6029f9a3897b635d7b6cc4df2d4bd
arch-arm: python3 "/" will always produce a float

"/" was ambiguous in python2 and was producing a floor (integer)
division if the operands were int or long.
In python3 "/" will always produce a float which makes it unsuitable
in cases where an integer is expected

PEP238: https://www.python.org/dev/peps/pep-0238/

Change-Id: I481cf1e9c0f95a6f47ecf6539eee0c9bcaf31e17
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/26247
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/isa/insts/macromem.isa
src/arch/arm/isa/insts/neon64.isa