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

Changeset ebb70d8 in mainline


Ignore:
Timestamp:
2022-07-27T05:30:02Z (3 weeks ago)
Author:
GitHub <noreply@…>
Parents:
0d59ea7e (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@…> (2022-07-27 05:30:02)
git-committer:
GitHub <noreply@…> (2022-07-27 05:30:02)
Message:

Merge e9c163920855901461396bd1009584b897c18dd0 into 0d59ea7ea0080e71c460e8251bb84b50f0ed8bc8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    r0d59ea7e rebb70d8  
    264264        cmd = 'qemu-' + suffix
    265265
     266        if cpus:
     267        cmd += ' -smp cpus=' + cpus + ' '
     268
    266269        cmdline = cmd
    267270        if 'qemu_path' in overrides.keys():
     
    440443def usage():
    441444        print("%s - emulator wrapper for running HelenOS\n" % os.path.basename(sys.argv[0]))
    442         print("%s [-d] [-h] [-net e1k|rtl8139|ne2k|virtio-net] [-hdd ata|virtio-blk] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" %
     445        print("%s [$] [-d] [-h] [-net e1k|rtl8139|ne2k|virtio-net] [-hdd ata|virtio-blk] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" %
    443446            os.path.basename(sys.argv[0]))
     447        print("$\t to run multiple($) cpus")
    444448        print("-d\tDry run: do not run the emulation, just print the command line.")
    445449        print("-h\tPrint the usage information and exit.")
     
    463467        expect_hdd = False
    464468        expect_qemu = False
     469        global cpus
     470    cpus = ''
    465471
    466472        for i in range(1, len(sys.argv)):
     
    503509                        usage()
    504510                        exit()
     511                elif sys.argv[i].isdigit():
     512            cpus = sys.argv[i]
    505513                elif sys.argv[i] == '-d':
    506514                        overrides['dryrun'] = True
Note: See TracChangeset for help on using the changeset viewer.