Changes in tools/ew.py [5119d34:ae8d7b0] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    r5119d34 rae8d7b0  
    160160        return ' -usb'
    161161
    162 def qemu_xhci_options():
    163         if is_override('noxhci'):
    164                 return ''
    165         return ' -device nec-usb-xhci,id=xhci'
    166 
    167162def qemu_audio_options():
    168163        if is_override('nosnd'):
     
    185180        if (not 'usb' in cfg.keys()) or cfg['usb']:
    186181                cmdline += qemu_usb_options()
    187         if (not 'xhci' in cfg.keys()) or cfg['xhci']:
    188                 cmdline += qemu_xhci_options()
    189182        if (not 'audio' in cfg.keys()) or cfg['audio']:
    190183                cmdline += qemu_audio_options()
     
    219212
    220213def spike_run(platform, machine, processor):
    221         run_in_console('spike image.boot', 'HelenOS/risvc64 on Spike')
     214        run_in_console('spike -m1073741824:1073741824 image.boot', 'HelenOS/risvc64 on Spike')
    222215
    223216emulators = {
     
    293286def usage():
    294287        print("%s - emulator wrapper for running HelenOS\n" % os.path.basename(sys.argv[0]))
    295         print("%s [-d] [-h] [-net e1k|rtl8139|ne2k] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci]\n" %
     288        print("%s [-d] [-h] [-net e1k|rtl8139|ne2k] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb]\n" %
    296289            os.path.basename(sys.argv[0]))
    297290        print("-d\tDry run: do not run the emulation, just print the command line.")
     
    302295        print("-nosnd\tDisable sound, if applicable.")
    303296        print("-nousb\tDisable USB support, if applicable.")
    304         print("-noxhci\tDisable XHCI support, if applicable.")
    305297
    306298def fail(platform, machine):
     
    344336                elif sys.argv[i] == '-nousb':
    345337                        overrides['nousb'] = True
    346                 elif sys.argv[i] == '-noxhci':
    347                         overrides['noxhci'] = True
    348338                else:
    349339                        usage()
Note: See TracChangeset for help on using the changeset viewer.