[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 22/22] target/loongarch: Add target build suport
From: |
Song Gao |
Subject: |
[PATCH v2 22/22] target/loongarch: Add target build suport |
Date: |
Wed, 21 Jul 2021 17:53:18 +0800 |
This patch add build loongarch-linux-user target support.
Signed-off-by: Song Gao <gaosong@loongson.cn>
---
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 0000000..54d5ca2
--- /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',
+))
+loongarch_tcg_ss = ss.source_set()
+loongarch_tcg_ss.add(gen)
+loongarch_tcg_ss.add(files(
+ 'fpu_helper.c',
+ 'op_helper.c',
+ 'tlb_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 2f69402..a53a604 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')
--
1.8.3.1
- [PATCH v2 14/22] target/loongarch: Add floating point comparison instruction translation, (continued)
- [PATCH v2 14/22] target/loongarch: Add floating point comparison instruction translation, Song Gao, 2021/07/21
- [PATCH v2 16/22] target/loongarch: Add floating point move instruction translation, Song Gao, 2021/07/21
- [PATCH v2 18/22] target/loongarch: Add branch instruction translation, Song Gao, 2021/07/21
- [PATCH v2 17/22] target/loongarch: Add floating point load/store instruction translation, Song Gao, 2021/07/21
- [PATCH v2 19/22] target/loongarch: Add disassembler, Song Gao, 2021/07/21
- [PATCH v2 22/22] target/loongarch: Add target build suport,
Song Gao <=
- [PATCH v2 20/22] LoongArch Linux User Emulation, Song Gao, 2021/07/21
- [PATCH v2 21/22] configs: Add loongarch linux-user config, Song Gao, 2021/07/21
- [PATCH v2 05/22] target/loongarch: Add memory management support, Song Gao, 2021/07/21
- [PATCH v2 06/22] target/loongarch: Add main translation routines, Song Gao, 2021/07/21