projects
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d614ecb
)
Set special CPU type on RISCV64
author
Hilko Bengen
<bengen@debian.org>
Thu, 30 Dec 2021 20:05:43 +0000
(21:05 +0100)
committer
Hilko 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
patch
|
blob
|
history
diff --git
a/lib/appliance-cpu.c
b/lib/appliance-cpu.c
index 54ac6e2e3e491b1a90e0da2faf29ce0e53419e09..1f50ffa565d86a03a489f89efc98b8755d0e3052 100644
(file)
--- a/
lib/appliance-cpu.c
+++ b/
lib/appliance-cpu.c
@@
-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.