Changeset eede1c5 in mainline


Ignore:
Timestamp:
2026-03-13T06:43:12Z (5 days ago)
Author:
GitHub <noreply@…>
Parents:
b979ffb (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@…> (2026-03-13 06:43:12)
git-committer:
GitHub <noreply@…> (2026-03-13 06:43:12)
Message:

Merge e9c163920855901461396bd1009584b897c18dd0 into b979ffbe85306f4a2b9b3c98f2311014a3ae021e

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    rb979ffb reede1c5  
    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.