[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v14 24/26] target/loongarch: Add target build suport
|
From: |
Song Gao |
|
Subject: |
[PATCH v14 24/26] target/loongarch: Add target build suport |
|
Date: |
Thu, 6 Jan 2022 04:41:58 -0500 |
This patch adds build loongarch-linux-user target support.
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.27.0
- Re: [PATCH v14 22/26] linux-user: Add LoongArch cpu_loop support, (continued)
- [PATCH v14 21/26] linux-user: Add LoongArch syscall support, Song Gao, 2022/01/06
- [PATCH v14 17/26] linux-user: Add LoongArch generic header files, Song Gao, 2022/01/06
- [PATCH v14 23/26] default-configs: Add loongarch linux-user support, Song Gao, 2022/01/06
- [PATCH v14 20/26] linux-user: Add LoongArch elf support, Song Gao, 2022/01/06
- [PATCH v14 26/26] scripts: add loongarch64 binfmt config, Song Gao, 2022/01/06
- [PATCH v14 24/26] target/loongarch: Add target build suport,
Song Gao <=
- [PATCH v14 01/26] target/loongarch: Add README, Song Gao, 2022/01/06
- [PATCH v14 08/26] target/loongarch: Add fixed point atomic instruction translation, Song Gao, 2022/01/06
- [PATCH v14 07/26] target/loongarch: Add fixed point load/store instruction translation, Song Gao, 2022/01/06
- [PATCH v14 13/26] target/loongarch: Add floating point move instruction translation, Song Gao, 2022/01/06
- [PATCH v14 25/26] target/loongarch: 'make check-tcg' support, Song Gao, 2022/01/06
- Re: [PATCH v14 00/26] Add LoongArch linux-user emulation support, Richard Henderson, 2022/01/07