configs: Updates for python3
[gem5.git] / configs / common / HMC.py
index c65b201b7fa9d0623d537678f8651864e538f17d..c4c0acc9e3bd8795041f42edb9b8c807cc15b072 100644 (file)
@@ -432,7 +432,7 @@ def config_hmc_dev(opt, system, hmc_host):
                                   for i in range(numx*(opt.mem_chunk-1))]
 
         # Buffer iterator
-        it = iter(range(len(system.hmc_dev.buffers)))
+        it = iter(list(range(len(system.hmc_dev.buffers))))
 
         # necesarry to add system_port to one of the xbar
         system.system_port = system.hmc_dev.xbar[3].slave
@@ -443,7 +443,7 @@ def config_hmc_dev(opt, system, hmc_host):
                 # connect xbar to all other xbars except itself
                 if i != j:
                     # get the next index of buffer
-                    index = it.next()
+                    index = next(it)
 
                     # Change the default values for ranges of bridge
                     system.hmc_dev.buffers[index].ranges = system.mem_ranges[