- disable keyring option - loongarch: Change the UEFI loading mode to loongarch - target/loongarch: Fix qtest test-hmp error when KVM-only build - target/loongarch/kvm: Enable LSX/LASX extension - target/loongarch: Set cpuid CSR register only once with kvm mode - configure: Add linux header compile support for LoongArch - hw/intc/loongarch_extioi: Add vmstate post_load support - hw/intc/loongarch_extioi: Add dynamic cpu number support - hw/loongarch/virt: Set iocsr address space per-board rather than percpu - hw/intc/loongarch_ipi: Use MemTxAttrs interface for ipi ops - target/loongarch: Add loongarch kvm into meson build - target/loongarch: Implement set vcpu intr for kvm - target/loongarch: Restrict TCG-specific code - target/loongarch: Implement kvm_arch_handle_exit - target/loongarch: Implement kvm_arch_init_vcpu - target/loongarch: Implement kvm_arch_init function - target/loongarch: Implement kvm get/set registers - target/loongarch: Supplement vcpu env initial when vcpu reset - target/loongarch: Define some kvm_arch interfaces - linux-headers: Synchronize linux headers from linux v6.7.0-rc8 - linux-headers: Update to Linux v6.7-rc5 - target/loongarch: move translate modules to tcg/ - target/loongarch/meson: move gdbstub.c to loongarch.ss - target/loongarch: Add timer information dump support - hw/loongarch/virt: Align high memory base address with super page size Signed-off-by: Jiabo Feng <fengjiabo1@huawei.com> (cherry picked from commit b2263e41ffa3428f1d9f9ff6e214c8e3a19e06e8)
57 lines
1.9 KiB
Diff
57 lines
1.9 KiB
Diff
From 49a7ae85d6ac42f8ef556a0d42802508c28adfcc Mon Sep 17 00:00:00 2001
|
|
From: Tianrui Zhao <zhaotianrui@loongson.cn>
|
|
Date: Fri, 5 Jan 2024 15:58:04 +0800
|
|
Subject: [PATCH] target/loongarch: Add loongarch kvm into meson build
|
|
|
|
Add kvm.c into meson.build to compile it when kvm
|
|
is configed. Meanwhile in meson.build, we set the
|
|
kvm_targets to loongarch64-softmmu when the cpu is
|
|
loongarch. And fix the compiling error when config
|
|
is enable-kvm,disable-tcg.
|
|
|
|
Signed-off-by: Tianrui Zhao <zhaotianrui@loongson.cn>
|
|
Signed-off-by: xianglai li <lixianglai@loongson.cn>
|
|
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
|
|
Reviewed-by: Song Gao <gaosong@loongson.cn>
|
|
Message-Id: <20240105075804.1228596-10-zhaotianrui@loongson.cn>
|
|
Signed-off-by: Song Gao <gaosong@loongson.cn>
|
|
---
|
|
meson.build | 2 ++
|
|
target/loongarch/kvm/meson.build | 1 +
|
|
target/loongarch/meson.build | 1 +
|
|
3 files changed, 4 insertions(+)
|
|
create mode 100644 target/loongarch/kvm/meson.build
|
|
|
|
diff --git a/meson.build b/meson.build
|
|
index 445f2b7c2b..0c62b4156d 100644
|
|
--- a/meson.build
|
|
+++ b/meson.build
|
|
@@ -114,6 +114,8 @@ elif cpu in ['riscv32']
|
|
kvm_targets = ['riscv32-softmmu']
|
|
elif cpu in ['riscv64']
|
|
kvm_targets = ['riscv64-softmmu']
|
|
+elif cpu in ['loongarch64']
|
|
+ kvm_targets = ['loongarch64-softmmu']
|
|
else
|
|
kvm_targets = []
|
|
endif
|
|
diff --git a/target/loongarch/kvm/meson.build b/target/loongarch/kvm/meson.build
|
|
new file mode 100644
|
|
index 0000000000..2266de6ca9
|
|
--- /dev/null
|
|
+++ b/target/loongarch/kvm/meson.build
|
|
@@ -0,0 +1 @@
|
|
+loongarch_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'))
|
|
diff --git a/target/loongarch/meson.build b/target/loongarch/meson.build
|
|
index e84e4c51f4..db310f6022 100644
|
|
--- a/target/loongarch/meson.build
|
|
+++ b/target/loongarch/meson.build
|
|
@@ -18,3 +18,4 @@ subdir('tcg')
|
|
|
|
target_arch += {'loongarch': loongarch_ss}
|
|
target_system_arch += {'loongarch': loongarch_system_ss}
|
|
+subdir('kvm')
|
|
--
|
|
2.27.0
|
|
|