Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 35a3dcdc in mainline


Ignore:
Timestamp:
2020-12-31T22:27:25Z (3 weeks ago)
Author:
GitHub <noreply@…>
Parents:
e037cf37 (diff), e9c1639 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Parth Patel <parth1020patel@…> (2020-12-31 22:27:25)
git-committer:
GitHub <noreply@…> (2020-12-31 22:27:25)
Message:

Merge e9c163920855901461396bd1009584b897c18dd0 into e037cf3733f322897cbfc63ce44277485f52af9b

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    re037cf37 r35a3dcdc  
    257257        cmd = 'qemu-' + suffix
    258258
     259        if cpus:
     260        cmd += ' -smp cpus=' + cpus + ' '
     261
    259262        cmdline = cmd
    260263        if 'qemu_path' in overrides.keys():
     
    419422def usage():
    420423        print("%s - emulator wrapper for running HelenOS\n" % os.path.basename(sys.argv[0]))
    421         print("%s [-d] [-h] [-net e1k|rtl8139|ne2k|virtio-net] [-hdd ata|virtio-blk] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" %
     424        print("%s [$] [-d] [-h] [-net e1k|rtl8139|ne2k|virtio-net] [-hdd ata|virtio-blk] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" %
    422425            os.path.basename(sys.argv[0]))
     426        print("$\t to run multiple($) cpus")
    423427        print("-d\tDry run: do not run the emulation, just print the command line.")
    424428        print("-h\tPrint the usage information and exit.")
     
    442446        expect_hdd = False
    443447        expect_qemu = False
     448        global cpus
     449    cpus = ''
    444450
    445451        for i in range(1, len(sys.argv)):
     
    482488                        usage()
    483489                        exit()
     490                elif sys.argv[i].isdigit():
     491            cpus = sys.argv[i]
    484492                elif sys.argv[i] == '-d':
    485493                        overrides['dryrun'] = True
Note: See TracChangeset for help on using the changeset viewer.