Set special CPU type on RISCV64
authorHilko Bengen <bengen@debian.org>
Thu, 30 Dec 2021 20:05:43 +0000 (21:05 +0100)
committerHilko Bengen <bengen@debian.org>
Sat, 1 Jan 2022 17:32:00 +0000 (17:32 +0000)
Gbp-Pq: Name Set-special-CPU-type-on-RISCV64.patch

lib/appliance-cpu.c

index 54ac6e2e3e491b1a90e0da2faf29ce0e53419e09..1f50ffa565d86a03a489f89efc98b8755d0e3052 100644 (file)
@@ -84,6 +84,8 @@ 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)
+  return "rv64";
 #else
   /* On most architectures we can use "max" to get the best possible CPU.
    * For recent qemu this should work even on TCG.