[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 17/43] target/loongarch: Add target build suport
From: |
Xiaojuan Yang |
Subject: |
[PATCH v5 17/43] target/loongarch: Add target build suport |
Date: |
Tue, 24 May 2022 16:17:38 +0800 |
From: Song Gao <gaosong@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
target/loongarch/meson.build | 19 +++++++++++++++++++
target/meson.build | 1 +
2 files changed, 20 insertions(+)
create mode 100644 target/loongarch/meson.build
diff --git a/target/loongarch/meson.build b/target/loongarch/meson.build
new file mode 100644
index 0000000000..bcb076e55f
--- /dev/null
+++ b/target/loongarch/meson.build
@@ -0,0 +1,19 @@
+gen = decodetree.process('insns.decode')
+
+loongarch_ss = ss.source_set()
+loongarch_ss.add(files(
+ 'cpu.c',
+ 'disas.c',
+))
+loongarch_tcg_ss = ss.source_set()
+loongarch_tcg_ss.add(gen)
+loongarch_tcg_ss.add(files(
+ 'fpu_helper.c',
+ 'op_helper.c',
+ 'translate.c',
+))
+loongarch_tcg_ss.add(zlib)
+
+loongarch_ss.add_all(when: 'CONFIG_TCG', if_true: [loongarch_tcg_ss])
+
+target_arch += {'loongarch': loongarch_ss}
diff --git a/target/meson.build b/target/meson.build
index 2f6940255e..a53a60486f 100644
--- a/target/meson.build
+++ b/target/meson.build
@@ -5,6 +5,7 @@ subdir('cris')
subdir('hexagon')
subdir('hppa')
subdir('i386')
+subdir('loongarch')
subdir('m68k')
subdir('microblaze')
subdir('mips')
--
2.31.1
- [PATCH v5 33/43] hw/intc: Add LoongArch ls7a msi interrupt controller support(PCH-MSI), (continued)
- [PATCH v5 33/43] hw/intc: Add LoongArch ls7a msi interrupt controller support(PCH-MSI), Xiaojuan Yang, 2022/05/24
- [PATCH v5 34/43] hw/intc: Add LoongArch extioi interrupt controller(EIOINTC), Xiaojuan Yang, 2022/05/24
- [PATCH v5 30/43] hw/loongarch: Add support loongson3 virt machine type., Xiaojuan Yang, 2022/05/24
- [PATCH v5 32/43] hw/intc: Add LoongArch ls7a interrupt controller support(PCH-PIC), Xiaojuan Yang, 2022/05/24
- [PATCH v5 39/43] hw/loongarch: Add LoongArch load elf function., Xiaojuan Yang, 2022/05/24
- [PATCH v5 04/43] target/loongarch: Add fixed point arithmetic instruction translation, Xiaojuan Yang, 2022/05/24
- [PATCH v5 42/43] tests/tcg/loongarch64: Add hello/memory test in loongarch64 system, Xiaojuan Yang, 2022/05/24
- [PATCH v5 35/43] hw/loongarch: Add irq hierarchy for the system, Xiaojuan Yang, 2022/05/24
- [PATCH v5 38/43] hw/loongarch: Add LoongArch ls7a rtc device support, Xiaojuan Yang, 2022/05/24
- [PATCH v5 23/43] target/loongarch: Add LoongArch interrupt and exception handle, Xiaojuan Yang, 2022/05/24
- [PATCH v5 17/43] target/loongarch: Add target build suport,
Xiaojuan Yang <=
- [PATCH v5 31/43] hw/loongarch: Add LoongArch ipi interrupt support(IPI), Xiaojuan Yang, 2022/05/24
- [PATCH v5 36/43] Enable common virtio pci support for LoongArch, Xiaojuan Yang, 2022/05/24
- [PATCH v5 41/43] target/loongarch: Add gdb support., Xiaojuan Yang, 2022/05/24
- [PATCH v5 09/43] target/loongarch: Add fixed point extra instruction translation, Xiaojuan Yang, 2022/05/24
- [PATCH v5 26/43] target/loongarch: Add LoongArch IOCSR instruction, Xiaojuan Yang, 2022/05/24
- [PATCH v5 18/43] target/loongarch: Add system emulation introduction, Xiaojuan Yang, 2022/05/24
- Re: [PATCH v5 00/43] Add LoongArch softmmu support, Richard Henderson, 2022/05/24