!736 解决loongarch64 qemu编译问题
From: @lixianglai Reviewed-by: @yezengruan Signed-off-by: @yezengruan
This commit is contained in:
commit
63c7403ee7
26
fixup-compile-on-loongarch64-machine.patch
Normal file
26
fixup-compile-on-loongarch64-machine.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From c952962cda3daf05323b383485d834ffc8e16f4f Mon Sep 17 00:00:00 2001
|
||||||
|
From: lixianglai <lixianglai@loongson.cn>
|
||||||
|
Date: Wed, 29 Mar 2023 02:48:04 -0400
|
||||||
|
Subject: [PATCH] fixup compile on loongarch64 machine.
|
||||||
|
|
||||||
|
Add function kvm_arch_accel_class_init definition on loongarch64 machine.
|
||||||
|
|
||||||
|
Signed-off-by: lixianglai <lixianglai@loongson.cn>
|
||||||
|
---
|
||||||
|
target/loongarch64/kvm.c | 3 +++
|
||||||
|
1 file changed, 3 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/target/loongarch64/kvm.c b/target/loongarch64/kvm.c
|
||||||
|
index 2b0159bb32..21f6d5695f 100644
|
||||||
|
--- a/target/loongarch64/kvm.c
|
||||||
|
+++ b/target/loongarch64/kvm.c
|
||||||
|
@@ -1364,3 +1364,6 @@ int kvm_arch_msi_data_to_gsi(uint32_t data)
|
||||||
|
{
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
+void kvm_arch_accel_class_init(ObjectClass *oc)
|
||||||
|
+{
|
||||||
|
+}
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: qemu
|
Name: qemu
|
||||||
Version: 6.2.0
|
Version: 6.2.0
|
||||||
Release: 68
|
Release: 69
|
||||||
Epoch: 10
|
Epoch: 10
|
||||||
Summary: QEMU is a generic and open source machine emulator and virtualizer
|
Summary: QEMU is a generic and open source machine emulator and virtualizer
|
||||||
License: GPLv2 and BSD and MIT and CC-BY-SA-4.0
|
License: GPLv2 and BSD and MIT and CC-BY-SA-4.0
|
||||||
@ -478,6 +478,7 @@ Patch0463: block-backend-prevent-dangling-BDS-pointers-across-a.patch
|
|||||||
Patch0464: net-Fix-uninitialized-data-usage.patch
|
Patch0464: net-Fix-uninitialized-data-usage.patch
|
||||||
Patch0465: net-eth-Don-t-consider-ESP-to-be-an-IPv6-option-head.patch
|
Patch0465: net-eth-Don-t-consider-ESP-to-be-an-IPv6-option-head.patch
|
||||||
Patch0466: hw-net-vmxnet3-Log-guest-triggerable-errors-using-LO.patch
|
Patch0466: hw-net-vmxnet3-Log-guest-triggerable-errors-using-LO.patch
|
||||||
|
Patch0467: fixup-compile-on-loongarch64-machine.patch
|
||||||
|
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
@ -1049,7 +1050,10 @@ getent passwd qemu >/dev/null || \
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wen Mar 29 2023 <xufei30@huawei.com> - 10:6.2.0-68
|
* Wed Mar 29 2023 <lixianglai@loongson.cn> - 10:6.2.0-69
|
||||||
|
- fixup compile error. Add function kvm_arch_accel_class_init definition on loongarch64 machine.
|
||||||
|
|
||||||
|
* Wed Mar 29 2023 <xufei30@huawei.com> - 10:6.2.0-68
|
||||||
- modify qemu.spec to add (riscv virt) machine mapping to testenv from v7.0.0
|
- modify qemu.spec to add (riscv virt) machine mapping to testenv from v7.0.0
|
||||||
|
|
||||||
* Tue Mar 28 2023 <xufei30@huawei.com> - 10:6.2.0-67
|
* Tue Mar 28 2023 <xufei30@huawei.com> - 10:6.2.0-67
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user