tests: Update memory tests to be compatible with python3
authorHoa Nguyen <hoanguyen@ucdavis.edu>
Fri, 22 May 2020 00:59:26 +0000 (17:59 -0700)
committerHoa Nguyen <hoanguyen@ucdavis.edu>
Fri, 22 May 2020 09:16:29 +0000 (09:16 +0000)
Signed-off-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
Change-Id: I9bb7444c62e6b29e9c91dbf30320a38718f08b8c
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29353
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
tests/gem5/memory/memtest-run.py

index 74f4543d64951eefd8fcf8be487134ac70875931..0cae42d873bac0793b1c3c5b1bc16ea06dd14705 100644 (file)
@@ -32,7 +32,7 @@ from common.Caches import *
 #MAX CORES IS 8 with the fals sharing method
 nb_cores = 8
 cpus = [MemTest(max_loads = 1e5, progress_interval = 1e4)
-        for i in xrange(nb_cores) ]
+        for i in range(nb_cores) ]
 
 # system simulated
 system = System(cpu = cpus,