[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 02/45] target/loongarch: meson.build support build LSX
|
From: |
Song Gao |
|
Subject: |
[PULL v2 02/45] target/loongarch: meson.build support build LSX |
|
Date: |
Sat, 6 May 2023 14:34:57 +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 | 5 +++++
target/loongarch/lsx_helper.c | 6 ++++++
target/loongarch/meson.build | 1 +
target/loongarch/translate.c | 1 +
4 files changed, 13 insertions(+)
create mode 100644 target/loongarch/insn_trans/trans_lsx.c.inc
create mode 100644 target/loongarch/lsx_helper.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
index 0000000000..1cf3ab34a9
--- /dev/null
+++ b/target/loongarch/insn_trans/trans_lsx.c.inc
@@ -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
index 0000000000..9332163aff
--- /dev/null
+++ b/target/loongarch/lsx_helper.c
@@ -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
+ */
diff --git a/target/loongarch/meson.build b/target/loongarch/meson.build
index 9293a8ab78..1117a51c52 100644
--- a/target/loongarch/meson.build
+++ b/target/loongarch/meson.build
@@ -11,6 +11,7 @@ loongarch_tcg_ss.add(files(
'op_helper.c',
'translate.c',
'gdbstub.c',
+ 'lsx_helper.c',
))
loongarch_tcg_ss.add(zlib)
diff --git a/target/loongarch/translate.c b/target/loongarch/translate.c
index 21d86077f4..97e019aeb4 100644
--- a/target/loongarch/translate.c
+++ b/target/loongarch/translate.c
@@ -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)
{
--
2.31.1
- [PULL v2 01/45] target/loongarch: Add LSX data type VReg, (continued)
- [PULL v2 01/45] target/loongarch: Add LSX data type VReg, Song Gao, 2023/05/06
- [PULL v2 08/45] target/loongarch: Implement vhaddw/vhsubw, Song Gao, 2023/05/06
- [PULL v2 09/45] target/loongarch: Implement vaddw/vsubw, Song Gao, 2023/05/06
- [PULL v2 07/45] target/loongarch: Implement vsadd/vssub, Song Gao, 2023/05/06
- [PULL v2 12/45] target/loongarch: Implement vadda, Song Gao, 2023/05/06
- [PULL v2 06/45] target/loongarch: Implement vneg, Song Gao, 2023/05/06
- [PULL v2 15/45] target/loongarch: Implement vmadd/vmsub/vmaddw{ev/od}, Song Gao, 2023/05/06
- [PULL v2 14/45] target/loongarch: Implement vmul/vmuh/vmulw{ev/od}, Song Gao, 2023/05/06
- [PULL v2 19/45] target/loongarch: Implement vsigncov, Song Gao, 2023/05/06
- [PULL v2 03/45] target/loongarch: Add CHECK_SXE maccro for check LSX enable, Song Gao, 2023/05/06
- [PULL v2 02/45] target/loongarch: meson.build support build LSX,
Song Gao <=
- [PULL v2 04/45] target/loongarch: Implement vadd/vsub, Song Gao, 2023/05/06
- [PULL v2 23/45] target/loongarch: Implement vsllwil vextl, Song Gao, 2023/05/06
- [PULL v2 17/45] target/loongarch: Implement vsat, Song Gao, 2023/05/06
- [PULL v2 21/45] target/loongarch: Implement LSX logic instructions, Song Gao, 2023/05/06
- [PULL v2 25/45] target/loongarch: Implement vsrln vsran, Song Gao, 2023/05/06
- [PULL v2 22/45] target/loongarch: Implement vsll vsrl vsra vrotr, Song Gao, 2023/05/06
- [PULL v2 24/45] target/loongarch: Implement vsrlr vsrar, Song Gao, 2023/05/06
- [PULL v2 26/45] target/loongarch: Implement vsrlrn vsrarn, Song Gao, 2023/05/06
- [PULL v2 34/45] target/loongarch: Implement LSX fpu fcvt instructions, Song Gao, 2023/05/06
- [PULL v2 30/45] target/loongarch: Implement vpcnt, Song Gao, 2023/05/06