def disks(self):
if self.disknames:
return [disk(diskname) for diskname in self.disknames]
- elif buildEnv['TARGET_ISA'] == 'alpha':
- return [env.get('LINUX_IMAGE', disk('linux-latest.img'))]
elif buildEnv['TARGET_ISA'] == 'x86':
return [env.get('LINUX_IMAGE', disk('x86root.img'))]
elif buildEnv['TARGET_ISA'] == 'arm':
from . import ObjectList
# Populate to reflect supported os types per target ISA
-os_types = { 'alpha' : [ 'linux' ],
- 'mips' : [ 'linux' ],
+os_types = { 'mips' : [ 'linux' ],
'sparc' : [ 'linux' ],
'x86' : [ 'linux' ],
'arm' : [ 'linux',
disks.append(disk)
return disks
-def makeLinuxAlphaSystem(mem_mode, mdesc=None, ruby=False, cmdline=None):
-
- class BaseTsunami(Tsunami):
- ethernet = NSGigE(pci_bus=0, pci_dev=1, pci_func=0)
- ide = IdeController(disks=Parent.disks,
- pci_func=0, pci_dev=0, pci_bus=0)
-
- self = LinuxAlphaSystem()
- if not mdesc:
- # generic system
- mdesc = SysConfig()
- self.readfile = mdesc.script()
-
- self.tsunami = BaseTsunami()
-
- # Create the io bus to connect all device ports
- self.iobus = IOXBar()
- self.tsunami.attachIO(self.iobus)
-
- self.tsunami.ide.pio = self.iobus.master
-
- self.tsunami.ethernet.pio = self.iobus.master
-
- if ruby:
- # Store the dma devices for later connection to dma ruby ports.
- # Append an underscore to dma_ports to avoid the SimObjectVector check.
- self._dma_ports = [self.tsunami.ide.dma, self.tsunami.ethernet.dma]
- else:
- self.membus = MemBus()
-
- # By default the bridge responds to all addresses above the I/O
- # base address (including the PCI config space)
- IO_address_space_base = 0x80000000000
- self.bridge = Bridge(delay='50ns',
- ranges = [AddrRange(IO_address_space_base, Addr.max)])
- self.bridge.master = self.iobus.slave
- self.bridge.slave = self.membus.master
-
- self.tsunami.ide.dma = self.iobus.slave
- self.tsunami.ethernet.dma = self.iobus.slave
-
- self.system_port = self.membus.slave
-
- self.mem_ranges = [AddrRange(mdesc.mem())]
- self.disks = makeCowDisks(mdesc.disks())
- self.simple_disk = SimpleDisk(disk=RawDiskImage(
- image_file = mdesc.disks()[0], read_only = True))
- self.intrctrl = IntrControl()
- self.mem_mode = mem_mode
- self.terminal = Terminal()
- self.pal = binary('ts_osfpal')
- self.console = binary('console')
- if not cmdline:
- cmdline = 'root=/dev/hda1 console=ttyS0'
- self.boot_osflags = fillInCmdline(mdesc, cmdline)
-
- return self
-
def makeSparcSystem(mem_mode, mdesc=None, cmdline=None):
# Constants from iob.cc and uart8250.cc
iob_man_addr = 0x9800000000
stdin = None
def __init__(self, isa, os, input_set):
- if (isa in ('alpha', 'arm', 'thumb', 'aarch64')):
+ if (isa in ('arm', 'thumb', 'aarch64')):
self.endian = 'lendian'
elif (isa == 'sparc' or isa == 'sparc32'):
self.endian = 'bendian'
for bench in all:
for input_set in 'ref', 'test', 'train':
print('class: %s' % bench.__name__)
- x = bench('alpha', 'tru64', input_set)
+ x = bench('x86', 'linux', input_set)
print('%s: %s' % (x, input_set))
pprint(x.makeProcessArgs())
print()
def build_test_system(np):
cmdline = cmd_line_template()
- if buildEnv['TARGET_ISA'] == "alpha":
- test_sys = makeLinuxAlphaSystem(test_mem_mode, bm[0], options.ruby,
- cmdline=cmdline)
- elif buildEnv['TARGET_ISA'] == "mips":
+ if buildEnv['TARGET_ISA'] == "mips":
test_sys = makeLinuxMipsSystem(test_mem_mode, bm[0], cmdline=cmdline)
elif buildEnv['TARGET_ISA'] == "sparc":
test_sys = makeSparcSystem(test_mem_mode, bm[0], cmdline=cmdline)
DriveMemClass = SimpleMemory
cmdline = cmd_line_template()
- if buildEnv['TARGET_ISA'] == 'alpha':
- drive_sys = makeLinuxAlphaSystem(drive_mem_mode, bm[1],
- cmdline=cmdline)
- elif buildEnv['TARGET_ISA'] == 'mips':
+ if buildEnv['TARGET_ISA'] == 'mips':
drive_sys = makeLinuxMipsSystem(drive_mem_mode, bm[1], cmdline=cmdline)
elif buildEnv['TARGET_ISA'] == 'sparc':
drive_sys = makeSparcSystem(drive_mem_mode, bm[1], cmdline=cmdline)
for app in apps:
try:
- if buildEnv['TARGET_ISA'] == 'alpha':
- exec("workload = %s('alpha', 'tru64', '%s')" % (
- app, options.spec_input))
- elif buildEnv['TARGET_ISA'] == 'arm':
+ if buildEnv['TARGET_ISA'] == 'arm':
exec("workload = %s('arm_%s', 'linux', '%s')" % (
app, options.arm_iset, options.spec_input))
else: