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

Changeset e3da6ac in mainline


Ignore:
Timestamp:
2022-04-28T05:03:05Z (3 weeks ago)
Author:
GitHub <noreply@…>
Parents:
fd05ea6 (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-04-28 05:03:05)
git-committer:
GitHub <noreply@…> (2022-04-28 05:03:05)
Message:

Merge e9c163920855901461396bd1009584b897c18dd0 into fd05ea65d3ce558eba4ac6cd5b55b70eebc1fcf5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    rfd05ea6 re3da6ac  
    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.