# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
from common.SysPaths import script, disk, binary
from os import environ as env
from m5.defines import buildEnv
# Configure the M5 cache hierarchy config in one place
#
-from __future__ import print_function
-from __future__ import absolute_import
-
import m5
from m5.objects import *
from common.Caches import *
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
from m5.defines import buildEnv
from m5.objects import *
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
from m5 import fatal
import m5.objects
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
-import six
-
import m5
from m5.objects import *
from m5.util import *
from common.Benchmarks import *
from common import ObjectList
-if six.PY3:
- long = int
-
# Populate to reflect supported os types per target ISA
os_types = { 'mips' : [ 'linux' ],
'riscv' : [ 'linux' ], # TODO that's a lie
pci_devices.append(self.pci_ide)
self.mem_ranges = []
- size_remain = long(Addr(mdesc.mem()))
+ size_remain = int(Addr(mdesc.mem()))
for region in self.realview._mem_regions:
- if size_remain > long(region.size()):
+ if size_remain > int(region.size()):
self.mem_ranges.append(region)
- size_remain = size_remain - long(region.size())
+ size_remain = size_remain - int(region.size())
else:
self.mem_ranges.append(AddrRange(region.start, size=size_remain))
size_remain = 0
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-
import m5
from m5.objects import *
from m5.util.convert import *
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
# Configure the TLB hierarchy
# Places which would probably need to be modified if you
# want a different hierarchy are specified by a <Modify here .. >'
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
def tlb_options(parser):
#===================================================================
# 2 Crossbars are connected to only local vaults. From other 2 crossbar, a
# request can be forwarded to any other vault.
-from __future__ import print_function
-from __future__ import absolute_import
-
import argparse
import m5
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
import m5.objects
from common import ObjectList
from common import HMC
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
import m5.objects
import inspect
import sys
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
import m5
from m5.defines import buildEnv
from m5.objects import *
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
""" Options wrapper for simple gem5 configuration scripts
This module wraps the optparse class so that we can register options
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
-import six
import sys
from os import getcwd
from os.path import join as joinpath
from m5.objects import *
from m5.util import *
-if six.PY3:
- long = int
-
addToPath('../common')
def getCPUClass(cpu_type):
if match:
cpts.append(match.group(1))
- cpts.sort(key = lambda a: long(a))
+ cpts.sort(key = lambda a: int(a))
cpt_num = options.checkpoint_restore
if cpt_num > len(cpts):
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
-from six import string_types
import os, sys
config_path = os.path.dirname(os.path.abspath(__file__))
environment_variable = 'M5_PATH'
def __init__(self, subdirs, sys_paths=None):
- if isinstance(subdirs, string_types):
+ if isinstance(subdirs, str):
subdirs = [subdirs]
self._subdir = os.path.join(*subdirs)
if sys_paths:
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-from __future__ import print_function
-from __future__ import absolute_import
"""
-from __future__ import print_function
-from __future__ import absolute_import
-
from m5.objects import *
# Simple function to allow a string of [01x_] to be converted into a
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
from m5.objects import *
# Simple ALU Instructions have a latency of 1
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
from pkgutil import iter_modules
from importlib import import_module
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
from m5.objects import *
#-----------------------------------------------------------------------
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
from m5.objects import *
#-----------------------------------------------------------------------
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
import os
import sys
from os.path import basename, exists, join as joinpath, normpath
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
import gzip
-import six
import optparse
import os
addToPath('../../util')
import protolib
-if six.PY3:
- long = int
-
# this script is helpful to observe the memory latency for various
# levels in a cache hierarchy, and various cache and memory
# configurations, in essence replicating the lmbench lat_mem_rd thrash
packet.size = int(burst_size)
for addr in addrs:
- packet.tick = long(tick)
- packet.addr = long(addr)
+ packet.tick = int(tick)
+ packet.addr = int(addr)
protolib.encodeMessage(proto_out, packet)
tick = tick + itt
nxt_range = 0
nxt_state = 0
-period = long(itt * (max_range / burst_size))
+period = int(itt * (max_range / burst_size))
# now we create the states for each range
for r in ranges:
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
import argparse
import m5
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
import math
import optparse
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
import optparse, os, re, getpass
import math
import glob
# Basic elastic traces replay script that configures a Trace CPU
-from __future__ import print_function
-from __future__ import absolute_import
-
import optparse
from m5.util import addToPath, fatal
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
import optparse
import sys
#
# Author: Tushar Krishna
-from __future__ import print_function
-from __future__ import absolute_import
-
import m5
from m5.objects import *
from m5.defines import buildEnv
#
# Author: Éder F. Zulian
-from __future__ import print_function
-from __future__ import absolute_import
-
import sys
import argparse
-from __future__ import print_function
-from __future__ import absolute_import
-
import sys
import argparse
import subprocess
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
import optparse
import random
import sys
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
import optparse
import random
import sys
# between system construction and run control may allow better
# debugging.
-from __future__ import print_function
-from __future__ import absolute_import
-
import argparse
-from six.moves import configparser
+import configparser
import inspect
import json
import re
-import six
import sys
import m5
import m5.ticks as ticks
-if six.PY3:
- long = int
-
sim_object_classes_by_name = {
cls.__name__: cls for cls in list(m5.objects.__dict__.values())
if inspect.isclass(cls) and issubclass(cls, m5.objects.SimObject) }
_param = param.split(':')
(start, end) = _param[0:2]
if len(_param) == 2:
- return m5.objects.AddrRange(start=long(start), end=long(end))
+ return m5.objects.AddrRange(start=int(start), end=int(end))
else:
assert len(_param) > 2
intlv_match = _param[2]
- masks = [ long(m) for m in _param[3:] ]
- return m5.objects.AddrRange(start=long(start), end=long(end),
- masks=masks, intlvMatch=long(intlv_match))
+ masks = [ int(m) for m in _param[3:] ]
+ return m5.objects.AddrRange(start=int(start), end=int(end),
+ masks=masks, intlvMatch=int(intlv_match))
def memory_bandwidth_parser(cls, flags, param):
param_parsers = {
'Bool': simple_parser(),
'ParamValue': no_parser,
- 'NumericParamValue': simple_parser(cast=long),
+ 'NumericParamValue': simple_parser(cast=int),
'TickParamValue': tick_parser(),
'Frequency': tick_parser(cast=m5.objects.Latency),
'Current': simple_parser(suffix='A'),
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
import m5
from m5.objects import *
from m5.defines import buildEnv
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
import m5
from m5.objects import *
from m5.defines import buildEnv
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
import m5
from m5.objects import *
from m5.defines import buildEnv
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
import m5
from m5.objects import *
from m5.defines import buildEnv
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-
import sys
import m5
#
# "m5 test.py"
-from __future__ import print_function
-from __future__ import absolute_import
-
import optparse
import sys
import os
line options from each individual class.
"""
-from __future__ import print_function
-from __future__ import absolute_import
-
import m5
from m5.objects import Cache
"""
-from __future__ import print_function
-from __future__ import absolute_import
-
-
# import the m5 (gem5) library created when gem5 is built
import m5
# import all of the SimObjects
"""
-from __future__ import print_function
-from __future__ import absolute_import
-
# import the m5 (gem5) library created when gem5 is built
import m5
# import all of the SimObjects
"""
-from __future__ import print_function
-from __future__ import absolute_import
-
# import the m5 (gem5) library created when gem5 is built
import m5
# import all of the SimObjects
"""
-from __future__ import print_function
-from __future__ import absolute_import
-
# import the m5 (gem5) library created when gem5 is built
import m5
# import all of the SimObjects
This config file assumes that the x86 ISA was built.
"""
-from __future__ import print_function
-from __future__ import absolute_import
-
# import the m5 (gem5) library created when gem5 is built
import m5
# import all of the SimObjects
This config file assumes that the x86 ISA was built.
"""
-from __future__ import print_function
-from __future__ import absolute_import
-
# import the m5 (gem5) library created when gem5 is built
import m5
# import all of the SimObjects
"""
-from __future__ import print_function
-from __future__ import absolute_import
-
import math
from m5.defines import buildEnv
"""
-from __future__ import print_function
-from __future__ import absolute_import
-
import math
from m5.defines import buildEnv
also needs to be updated. For now, email Jason <jason@lowepower.com>
"""
-from __future__ import print_function
-from __future__ import absolute_import
# import the m5 (gem5) library created when gem5 is built
import m5
also needs to be updated. For now, email Jason <jason@lowepower.com>
"""
-from __future__ import print_function
-from __future__ import absolute_import
# import the m5 (gem5) library created when gem5 is built
import m5
"""
-from __future__ import print_function
-from __future__ import absolute_import
-
from m5.defines import buildEnv
from m5.util import fatal
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
import math
import m5
from m5.objects import *
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-from __future__ import print_function
-from __future__ import absolute_import
#
# Authors: Andreas Hansson
-from __future__ import print_function
-from __future__ import absolute_import
-
import math
import optparse
#
# Authors: Andreas Hansson
-from __future__ import print_function
-from __future__ import absolute_import
-
import math
import optparse
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
-import six
import math
import m5
from m5.objects import *
from topologies.Cluster import Cluster
from topologies.Crossbar import Crossbar
-if six.PY3:
- long = int
-
class CntrlBase:
_seqs = 0
@classmethod
self.dataArrayBanks = 256 / options.num_tccs #number of data banks
self.tagArrayBanks = 256 / options.num_tccs #number of tag banks
self.size.value = self.size.value / options.num_tccs
- if ((self.size.value / long(self.assoc)) < 128):
- self.size.value = long(128 * self.assoc)
+ if ((self.size.value / int(self.assoc)) < 128):
+ self.size.value = int(128 * self.assoc)
self.start_index_bit = math.log(options.cacheline_size, 2) + \
math.log(options.num_tccs, 2)
self.replacement_policy = TreePLRURP()
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-
import math
import m5
from m5.objects import *
#
# "m5 test.py"
-from __future__ import print_function
-from __future__ import absolute_import
-
import os
import optparse
import sys
# Splash2 Run Script
#
-from __future__ import print_function
-from __future__ import absolute_import
-
import os
import optparse
import sys
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
import m5
class BaseTopology(object):
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
from topologies.BaseTopology import BaseTopology
class Cluster(BaseTopology):
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
from m5.params import *
from m5.objects import *
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
from m5.params import *
from m5.objects import *
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
from m5.params import *
from m5.objects import *
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
from m5.params import *
from m5.objects import *
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
from m5.params import *
from m5.objects import *
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from __future__ import print_function
-from __future__ import absolute_import
-
from m5.params import *
from m5.objects import *
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-from __future__ import print_function
-from __future__ import absolute_import