configs: Remove Python 2 compatibility code in Arm configs

Remove uses of six and imports from __future__ and use native Python 3
functionality instead.

Change-Id: If37718ba99def2d6f176604e20d4ebeda75474ad
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/39581
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Richard Cooper <richard.cooper@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Andreas Sandberg
2021-01-21 16:45:59 +00:00
parent 75e7f18e80
commit 206038912c
8 changed files with 1 additions and 31 deletions

View File

@@ -39,9 +39,6 @@ Research Starter Kit on System Modeling. More information can be found
at: http://www.arm.com/ResearchEnablement/SystemModeling
"""
from __future__ import print_function
from __future__ import absolute_import
import os
import m5
from m5.util import addToPath

View File

@@ -35,20 +35,12 @@
# System components used by the bigLITTLE.py configuration script
from __future__ import print_function
from __future__ import absolute_import
import six
import m5
from m5.objects import *
m5.util.addToPath('../../')
from common.Caches import *
from common import ObjectList
if six.PY3:
long = int
have_kvm = "ArmV8KvmCPU" in ObjectList.cpu_list.get_names()
have_fastmodel = "FastModelCortexA76" in ObjectList.cpu_list.get_names()
@@ -320,7 +312,7 @@ def simpleSystem(BaseSystem, caches, mem_size, platform=None, **kwargs):
self.iobridge = Bridge(delay='50ns')
# Device DMA -> MEM
mem_range = self.realview._mem_regions[0]
assert long(mem_range.size()) >= long(Addr(mem_size))
assert int(mem_range.size()) >= int(Addr(mem_size))
self.mem_ranges = [
AddrRange(start=mem_range.start, size=mem_size) ]

View File

@@ -36,9 +36,6 @@
# This configuration file extends the example ARM big.LITTLE(tm)
# configuration to enabe dist-gem5 siulations of big.LITTLE systems.
from __future__ import print_function
from __future__ import absolute_import
import argparse
import os

View File

@@ -36,10 +36,6 @@
# This is an example configuration script for full system simulation of
# a generic ARM bigLITTLE system.
from __future__ import print_function
from __future__ import absolute_import
import argparse
import os
import sys

View File

@@ -36,9 +36,6 @@
# This configuration file extends the example ARM big.LITTLE(tm)
# with example power models.
from __future__ import print_function
from __future__ import absolute_import
import argparse
import os

View File

@@ -38,9 +38,6 @@ Research Starter Kit on System Modeling. More information can be found
at: http://www.arm.com/ResearchEnablement/SystemModeling
"""
from __future__ import print_function
from __future__ import absolute_import
import os
import m5
from m5.util import addToPath

View File

@@ -38,9 +38,6 @@ Research Starter Kit on System Modeling. More information can be found
at: http://www.arm.com/ResearchEnablement/SystemModeling
"""
from __future__ import print_function
from __future__ import absolute_import
import os
import m5
from m5.util import addToPath

View File

@@ -34,9 +34,6 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
from __future__ import print_function
from __future__ import absolute_import
import inspect
import m5
from m5.objects import *