Changeset e9c1639 in mainline
- Timestamp:
- 2020-12-09T15:53:25Z (4 years ago)
- Children:
- 5b6081f
- Parents:
- 25f26600
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/ew.py
r25f26600 re9c1639 257 257 cmd = 'qemu-' + suffix 258 258 259 if cpus: 260 cmd += ' -smp cpus=' + cpus + ' ' 261 259 262 cmdline = cmd 260 263 if 'qemu_path' in overrides.keys(): … … 419 422 def usage(): 420 423 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" % 422 425 os.path.basename(sys.argv[0])) 426 print("$\t to run multiple($) cpus") 423 427 print("-d\tDry run: do not run the emulation, just print the command line.") 424 428 print("-h\tPrint the usage information and exit.") … … 442 446 expect_hdd = False 443 447 expect_qemu = False 448 global cpus 449 cpus = '' 444 450 445 451 for i in range(1, len(sys.argv)): … … 482 488 usage() 483 489 exit() 490 elif sys.argv[i].isdigit(): 491 cpus = sys.argv[i] 484 492 elif sys.argv[i] == '-d': 485 493 overrides['dryrun'] = True
Note:
See TracChangeset
for help on using the changeset viewer.