lib/appliance-cpu.c: Use -cpu max for RISC-V

Reported-by: https://github.com/Apache553
Fixes: https://github.com/libguestfs/libguestfs/issues/292
This commit is contained in:
Richard W.M. Jones
2026-01-19 12:11:54 +00:00
committed by rwmjones
parent 7fee08e53f
commit 29162f5fe5

View File

@@ -84,9 +84,6 @@ guestfs_int_get_cpu_model (int kvm)
#elif defined(__powerpc64__)
/* See discussion in https://bugzilla.redhat.com/show_bug.cgi?id=1605071 */
return NULL;
#elif defined(__riscv)
/* qemu-system-riscv64 (7.0) doesn't yet support -cpu max */
return NULL;
#elif defined(__loongarch64)
/* qemu-system-loongarch64 doesn't yet support -cpu max */
return NULL;