mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
launch: board model for RISC-V
On RISC-V there is no default machine type. Invoking QEMU requires to specify a board model with the -M option. So let's define MACHINE_TYPE as virt. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
committed by
Richard W.M. Jones
parent
90a076fe19
commit
efb3d01992
@@ -157,6 +157,9 @@ cleanup_mutex_unlock (pthread_mutex_t **ptr)
|
||||
#ifdef __powerpc__
|
||||
#define MACHINE_TYPE "pseries"
|
||||
#endif
|
||||
#ifdef __riscv
|
||||
#define MACHINE_TYPE "virt"
|
||||
#endif
|
||||
|
||||
/* Differences in qemu device names on ARMv7 (virtio-mmio), s/390x
|
||||
* (CCW) vs normal hardware with PCI.
|
||||
|
||||
Reference in New Issue
Block a user