From: Hilko Bengen Date: Thu, 30 Dec 2021 20:05:43 +0000 (+0100) Subject: Set CPU type for mipsel, mips64el X-Git-Tag: archive/raspbian/1%1.52.0-6.1+rpi1^2^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=15560a3887115bfa0487ff17ee5f10f4317be9e6;p=libguestfs.git Set CPU type for mipsel, mips64el Gbp-Pq: Name Set-CPU-type-for-mipsel-mips64el.patch --- diff --git a/lib/appliance-cpu.c b/lib/appliance-cpu.c index 57745973..27969cd7 100644 --- a/lib/appliance-cpu.c +++ b/lib/appliance-cpu.c @@ -87,6 +87,12 @@ guestfs_int_get_cpu_model (int kvm) #elif defined(__riscv) /* qemu-system-riscv64 (7.0) doesn't yet support -cpu max */ return NULL; +#elif defined(__mips64) + /* Taken from https://gist.github.com/bradfa/46ceff759a0cf9f392cc069c4f0f095a */ + return "5KEc"; +#elif defined(__mips) + /* Guessed from mips64 */ + return "4KEc"; #else /* On most architectures we can use "max" to get the best possible CPU. * For recent qemu this should work even on TCG.