MCPcopy Create free account
hub / github.com/ClangBuiltLinux/boot-utils / RISCVQEMURunner

Class RISCVQEMURunner

boot-qemu.py:625–641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623 ] # fmt: off
624
625
626class RISCVQEMURunner(QEMURunner):
627 def __init__(self) -> None:
628 super().__init__()
629
630 self.cmdline.append('earlycon')
631 self._default_kernel_path = Path('arch/riscv/boot/Image')
632 self._initrd_arch = 'riscv'
633 self._qemu_arch = 'riscv64'
634
635 deb_bios = '/usr/lib/riscv64-linux-gnu/opensbi/qemu/virt/fw_jump.elf'
636 if 'BIOS' in os.environ:
637 bios = os.environ['BIOS']
638 elif Path(deb_bios).exists():
639 bios = deb_bios
640 else:
641 bios = 'default'
642 self._qemu_args += ['-bios', bios, '-M', 'virt']
643
644

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected