| 623 | ] # fmt: off |
| 624 | |
| 625 | |
| 626 | class 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 |
nothing calls this directly
no outgoing calls
no test coverage detected