[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 9/9] target/loongarch: Add loongarch kvm into meson build
|
From: |
xianglai li |
|
Subject: |
[PATCH v1 9/9] target/loongarch: Add loongarch kvm into meson build |
|
Date: |
Wed, 8 Nov 2023 09:41:41 +0800 |
From: Tianrui Zhao <zhaotianrui@loongson.cn>
Add kvm.c and kvm-stub.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.
Signed-off-by: Tianrui Zhao <zhaotianrui@loongson.cn>
Signed-off-by: xianglai li <lixianglai@loongson.cn>
---
meson.build | 2 ++
target/loongarch/meson.build | 1 +
2 files changed, 3 insertions(+)
diff --git a/meson.build b/meson.build
index a98e48b8e9..2a3b011fa4 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/meson.build b/target/loongarch/meson.build
index 18e8191e2b..e00cabcefc 100644
--- a/target/loongarch/meson.build
+++ b/target/loongarch/meson.build
@@ -27,6 +27,7 @@ loongarch_system_ss.add(files(
common_ss.add(when: 'CONFIG_LOONGARCH_DIS', if_true: [files('disas.c'), gen])
+loongarch_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'), if_false:
files('kvm-stub.c'))
loongarch_ss.add_all(when: 'CONFIG_TCG', if_true: [loongarch_tcg_ss])
target_arch += {'loongarch': loongarch_ss}
--
2.39.1
- [PATCH v1 0/9] Add loongarch kvm accel support, xianglai li, 2023/11/07
- [PATCH v1 1/9] linux-headers: Add KVM headers for loongarch, xianglai li, 2023/11/07
- [PATCH v1 3/9] target/loongarch: Supplement vcpu env initial when vcpu reset, xianglai li, 2023/11/07
- [PATCH v1 8/9] target/loongarch: Implement set vcpu intr for kvm, xianglai li, 2023/11/07
- [PATCH v1 2/9] target/loongarch: Define some kvm_arch interfaces, xianglai li, 2023/11/07
- [PATCH v1 5/9] target/loongarch: Implement kvm_arch_init function, xianglai li, 2023/11/07
- [PATCH v1 9/9] target/loongarch: Add loongarch kvm into meson build,
xianglai li <=
- [PATCH v1 6/9] target/loongarch: Implement kvm_arch_init_vcpu, xianglai li, 2023/11/07
- [PATCH v1 7/9] target/loongarch: Implement kvm_arch_handle_exit, xianglai li, 2023/11/07
- [PATCH v1 4/9] target/loongarch: Implement kvm get/set registers, xianglai li, 2023/11/07