Changes in / [08499f0:a38a870] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    r08499f0 ra38a870  
    268268        suffix, options = platform_to_qemu_options(platform, machine, processor)
    269269        cmd = 'qemu-' + suffix
     270
     271        if cpus:
     272        cmd += ' -smp cpus=' + cpus + ' '
    270273
    271274        cmdline = cmd
     
    448451def usage():
    449452        print("%s - emulator wrapper for running HelenOS\n" % os.path.basename(sys.argv[0]))
    450         print("%s [-d] [-h] [-net e1k|rtl8139|ne2k|virtio-net] [-hdd ata|virtio-blk] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" %
     453        print("%s [$] [-d] [-h] [-net e1k|rtl8139|ne2k|virtio-net] [-hdd ata|virtio-blk] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" %
    451454            os.path.basename(sys.argv[0]))
     455        print("$\t to run multiple($) cpus")
    452456        print("-d\tDry run: do not run the emulation, just print the command line.")
    453457        print("-h\tPrint the usage information and exit.")
     
    471475        expect_hdd = False
    472476        expect_qemu = False
     477        global cpus
     478    cpus = ''
    473479
    474480        for i in range(1, len(sys.argv)):
     
    511517                        usage()
    512518                        exit()
     519                elif sys.argv[i].isdigit():
     520            cpus = sys.argv[i]
    513521                elif sys.argv[i] == '-d':
    514522                        overrides['dryrun'] = True
Note: See TracChangeset for help on using the changeset viewer.