From 61390a0a89bca14754a3cff4b0bc6be3841e8d9d Mon Sep 17 00:00:00 2001 From: Hilko Bengen Date: Thu, 30 Dec 2021 21:05:43 +0100 Subject: [PATCH] Set CPU type for mipsel, mips64el Gbp-Pq: Name Set-CPU-type-for-mipsel-mips64el.patch --- lib/appliance-cpu.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/appliance-cpu.c b/lib/appliance-cpu.c index 8ce5084b..841e6018 100644 --- a/lib/appliance-cpu.c +++ b/lib/appliance-cpu.c @@ -90,6 +90,12 @@ guestfs_int_get_cpu_model (int kvm) #elif defined(__loongarch64) /* qemu-system-loongarch64 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. -- 2.30.2