Changes in tools/ew.py [5119d34:ae8d7b0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/ew.py
r5119d34 rae8d7b0 160 160 return ' -usb' 161 161 162 def qemu_xhci_options():163 if is_override('noxhci'):164 return ''165 return ' -device nec-usb-xhci,id=xhci'166 167 162 def qemu_audio_options(): 168 163 if is_override('nosnd'): … … 185 180 if (not 'usb' in cfg.keys()) or cfg['usb']: 186 181 cmdline += qemu_usb_options() 187 if (not 'xhci' in cfg.keys()) or cfg['xhci']:188 cmdline += qemu_xhci_options()189 182 if (not 'audio' in cfg.keys()) or cfg['audio']: 190 183 cmdline += qemu_audio_options() … … 219 212 220 213 def 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') 222 215 223 216 emulators = { … … 293 286 def usage(): 294 287 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" % 296 289 os.path.basename(sys.argv[0])) 297 290 print("-d\tDry run: do not run the emulation, just print the command line.") … … 302 295 print("-nosnd\tDisable sound, if applicable.") 303 296 print("-nousb\tDisable USB support, if applicable.") 304 print("-noxhci\tDisable XHCI support, if applicable.")305 297 306 298 def fail(platform, machine): … … 344 336 elif sys.argv[i] == '-nousb': 345 337 overrides['nousb'] = True 346 elif sys.argv[i] == '-noxhci':347 overrides['noxhci'] = True348 338 else: 349 339 usage()
Note:
See TracChangeset
for help on using the changeset viewer.