]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/loongarch: meson.build support build LSX
authorSong Gao <gaosong@loongson.cn>
Thu, 4 May 2023 12:27:28 +0000 (20:27 +0800)
committerSong Gao <gaosong@loongson.cn>
Sat, 6 May 2023 03:19:44 +0000 (11:19 +0800)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20230504122810.4094787-3-gaosong@loongson.cn>

target/loongarch/insn_trans/trans_lsx.c.inc [new file with mode: 0644]
target/loongarch/lsx_helper.c [new file with mode: 0644]
target/loongarch/meson.build
target/loongarch/translate.c

diff --git a/target/loongarch/insn_trans/trans_lsx.c.inc b/target/loongarch/insn_trans/trans_lsx.c.inc
new file mode 100644 (file)
index 0000000..1cf3ab3
--- /dev/null
@@ -0,0 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+/*
+ * LSX translate functions
+ * Copyright (c) 2022-2023 Loongson Technology Corporation Limited
+ */
diff --git a/target/loongarch/lsx_helper.c b/target/loongarch/lsx_helper.c
new file mode 100644 (file)
index 0000000..9332163
--- /dev/null
@@ -0,0 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+/*
+ * QEMU LoongArch LSX helper functions.
+ *
+ * Copyright (c) 2022-2023 Loongson Technology Corporation Limited
+ */
index 9293a8ab784290114bf66ca3306552c40663abe5..1117a51c52fe32517aef1f87aa8d6dc8e5b4e35e 100644 (file)
@@ -11,6 +11,7 @@ loongarch_tcg_ss.add(files(
   'op_helper.c',
   'translate.c',
   'gdbstub.c',
+  'lsx_helper.c',
 ))
 loongarch_tcg_ss.add(zlib)
 
index 21d86077f420af425458174ef71e7321a188d360..97e019aeb4552cbf1c08676b2a6bd668e264baa9 100644 (file)
@@ -171,6 +171,7 @@ static void gen_set_gpr(int reg_num, TCGv t, DisasExtend dst_ext)
 #include "insn_trans/trans_fmemory.c.inc"
 #include "insn_trans/trans_branch.c.inc"
 #include "insn_trans/trans_privileged.c.inc"
+#include "insn_trans/trans_lsx.c.inc"
 
 static void loongarch_tr_translate_insn(DisasContextBase *dcbase, CPUState *cs)
 {