Changes in tools/ew.py [06f10ac:56a3c29e] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    r06f10ac r56a3c29e  
    7979        for termemu in emus:
    8080                try:
    81                         subprocess.check_output('which ' + termemu, shell = True)
     81                        subprocess.check_output('which ' + termemu, shell = True, stderr = subprocess.STDOUT)
    8282                        return termemu
    8383                except:
     
    173173                        raise Exception
    174174                if processor == 'us':
    175                         return 'system-sparc64', '-M sun4u --prom-env boot-args="console=devices/\\hw\\pci0\\01:01.0\\com1\\a"'
     175                        cmdline = '-M sun4u'
     176                        if is_override('nographic'):
     177                            cmdline += ' --prom-env boot-args="console=devices/\\hw\\pci0\\01:01.0\\com1\\a"'
     178                        return 'system-sparc64', cmdline
    176179
    177180                # processor = 'sun4v'
     
    285288        if (is_override('nographic')):
    286289                cmdline += ' -nographic'
     290                console = True
    287291
    288292        if (not console and (not is_override('nographic')) and not is_override('noserial')):
     
    327331def msim_run(platform, machine, processor):
    328332        hdisk_mk()
    329         run_in_console('msim -c ' + TOOLS_DIR + '/conf/msim.conf', 'HelenOS/mips32 on msim')
     333        run_in_console('msim -n -c ' + TOOLS_DIR + '/conf/msim.conf', 'HelenOS/mips32 on msim')
    330334
    331335def spike_run(platform, machine, processor):
     
    410414                                'image' : 'image.iso',
    411415                                'audio' : False,
    412                                 'console' : True,
     416                                'console' : False,
    413417                                'net' : False,
    414418                                'usb' : False,
     
    418422                        'sun4v' : {
    419423                                'run' : qemu_run,
    420                                 'image' : '-drive if=pflash,readonly=on,file=image.iso',
     424                                # QEMU 8.0.0 ignores the 'file' argument and instead uses 'id',
     425                                # which defaults to 'pflash0', but can be changed to the same value
     426                                # as 'file'
     427                                'image' : '-drive if=pflash,id=image.iso,readonly=on,file=image.iso',
    421428                                'audio' : False,
    422429                                'console' : True,
Note: See TracChangeset for help on using the changeset viewer.