]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: qemu: enable booting on a second virtio device
authorAurelien Jarno <aurelien@aurel32.net>
Wed, 10 Jan 2024 20:26:53 +0000 (21:26 +0100)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 31 Jan 2024 08:52:15 +0000 (16:52 +0800)
QEMU RISC-V supports multiple virtio devices, but only tries to boot to
the first one. Enable support for a second virtio device, that is useful
for instance to boot on a disk image + an installer. Ideally that should
be made dynamic, but that's a first step.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
include/configs/qemu-riscv.h

index 584559cfa323d635c6a49b937a577810f9a8a7e5..2f594bfcfd69f65f898c16bd30d9ad5bfc659c29 100644 (file)
@@ -23,6 +23,7 @@
 
 #define BOOT_TARGET_DEVICES(func) \
        func(VIRTIO, virtio, 0) \
+       func(VIRTIO, virtio, 1) \
        func(SCSI, scsi, 0) \
        func(DHCP, dhcp, na)