Changes in tools/ew.py [ae8d7b0:5119d34] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/ew.py
rae8d7b0 r5119d34 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 162 167 def qemu_audio_options(): 163 168 if is_override('nosnd'): … … 180 185 if (not 'usb' in cfg.keys()) or cfg['usb']: 181 186 cmdline += qemu_usb_options() 187 if (not 'xhci' in cfg.keys()) or cfg['xhci']: 188 cmdline += qemu_xhci_options() 182 189 if (not 'audio' in cfg.keys()) or cfg['audio']: 183 190 cmdline += qemu_audio_options() … … 212 219 213 220 def spike_run(platform, machine, processor): 214 run_in_console('spike -m1073741824:1073741824image.boot', 'HelenOS/risvc64 on Spike')221 run_in_console('spike image.boot', 'HelenOS/risvc64 on Spike') 215 222 216 223 emulators = { … … 286 293 def usage(): 287 294 print("%s - emulator wrapper for running HelenOS\n" % os.path.basename(sys.argv[0])) 288 print("%s [-d] [-h] [-net e1k|rtl8139|ne2k] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] \n" %295 print("%s [-d] [-h] [-net e1k|rtl8139|ne2k] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci]\n" % 289 296 os.path.basename(sys.argv[0])) 290 297 print("-d\tDry run: do not run the emulation, just print the command line.") … … 295 302 print("-nosnd\tDisable sound, if applicable.") 296 303 print("-nousb\tDisable USB support, if applicable.") 304 print("-noxhci\tDisable XHCI support, if applicable.") 297 305 298 306 def fail(platform, machine): … … 336 344 elif sys.argv[i] == '-nousb': 337 345 overrides['nousb'] = True 346 elif sys.argv[i] == '-noxhci': 347 overrides['noxhci'] = True 338 348 else: 339 349 usage()
Note:
See TracChangeset
for help on using the changeset viewer.