Changeset aeef65a2 in mainline for tools/ew.py


Ignore:
Timestamp:
2024-10-30T22:36:53Z (29 hours ago)
Author:
GitHub <noreply@…>
Parents:
ad9e225 (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@…> (2024-10-30 22:36:53)
git-committer:
GitHub <noreply@…> (2024-10-30 22:36:53)
Message:

Merge e9c163920855901461396bd1009584b897c18dd0 into ad9e2257215db1d8451e4a51b25573aa07918d4b

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    rad9e225 raeef65a2  
    263263        suffix, options = platform_to_qemu_options(platform, machine, processor)
    264264        cmd = 'qemu-' + suffix
     265
     266        if cpus:
     267        cmd += ' -smp cpus=' + cpus + ' '
    265268
    266269        cmdline = cmd
     
    443446def usage():
    444447        print("%s - emulator wrapper for running HelenOS\n" % os.path.basename(sys.argv[0]))
    445         print("%s [-d] [-h] [-net e1k|rtl8139|ne2k|virtio-net] [-hdd ata|virtio-blk] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" %
     448        print("%s [$] [-d] [-h] [-net e1k|rtl8139|ne2k|virtio-net] [-hdd ata|virtio-blk] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" %
    446449            os.path.basename(sys.argv[0]))
     450        print("$\t to run multiple($) cpus")
    447451        print("-d\tDry run: do not run the emulation, just print the command line.")
    448452        print("-h\tPrint the usage information and exit.")
     
    466470        expect_hdd = False
    467471        expect_qemu = False
     472        global cpus
     473    cpus = ''
    468474
    469475        for i in range(1, len(sys.argv)):
     
    506512                        usage()
    507513                        exit()
     514                elif sys.argv[i].isdigit():
     515            cpus = sys.argv[i]
    508516                elif sys.argv[i] == '-d':
    509517                        overrides['dryrun'] = True
Note: See TracChangeset for help on using the changeset viewer.