fastmodel: Replace xrange with range to be python3 compliant
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 18 Nov 2020 15:19:22 +0000 (15:19 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 19 Nov 2020 17:20:32 +0000 (17:20 +0000)
Change-Id: I69ef5d744e2642af95383fbda920464178380757
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/37716
Reviewed-by: Gabe Black <gabe.black@gmail.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/fastmodel/GIC/FastModelGIC.py

index 3298be944408ea47a4959d89c38afd1bd78f3764..ac81de59463d1a7f13932bd5f8ee43d99ce7034c 100644 (file)
@@ -509,7 +509,7 @@ class FastModelGIC(BaseGic):
         ]
         ranges += [
             AddrRange(its_bases[i], size=2 * gic_frame_size)
-            for i in xrange(sc_gic.its_count)
+            for i in range(sc_gic.its_count)
         ]
 
         return ranges