[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 16/28] target/mips: Extract NEC Vr54xx helper definitions
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v2 16/28] target/mips: Extract NEC Vr54xx helper definitions |
Date: |
Mon, 23 Nov 2020 21:44:36 +0100 |
Extract the NEC Vr54xx helper definitions to
'vendor-vr54xx_helper.h'.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20201120210844.2625602-15-f4bug@amsat.org>
---
target/mips/helper.h | 17 ++---------------
target/mips/vendor-vr54xx_helper.h.inc | 24 ++++++++++++++++++++++++
2 files changed, 26 insertions(+), 15 deletions(-)
create mode 100644 target/mips/vendor-vr54xx_helper.h.inc
diff --git a/target/mips/helper.h b/target/mips/helper.h
index 06da4c6cf68..58c716a1480 100644
--- a/target/mips/helper.h
+++ b/target/mips/helper.h
@@ -20,21 +20,6 @@ DEF_HELPER_3(lld, tl, env, tl, int)
#endif
#endif
-DEF_HELPER_3(muls, tl, env, tl, tl)
-DEF_HELPER_3(mulsu, tl, env, tl, tl)
-DEF_HELPER_3(macc, tl, env, tl, tl)
-DEF_HELPER_3(maccu, tl, env, tl, tl)
-DEF_HELPER_3(msac, tl, env, tl, tl)
-DEF_HELPER_3(msacu, tl, env, tl, tl)
-DEF_HELPER_3(mulhi, tl, env, tl, tl)
-DEF_HELPER_3(mulhiu, tl, env, tl, tl)
-DEF_HELPER_3(mulshi, tl, env, tl, tl)
-DEF_HELPER_3(mulshiu, tl, env, tl, tl)
-DEF_HELPER_3(macchi, tl, env, tl, tl)
-DEF_HELPER_3(macchiu, tl, env, tl, tl)
-DEF_HELPER_3(msachi, tl, env, tl, tl)
-DEF_HELPER_3(msachiu, tl, env, tl, tl)
-
DEF_HELPER_FLAGS_1(bitswap, TCG_CALL_NO_RWG_SE, tl, tl)
#ifdef TARGET_MIPS64
DEF_HELPER_FLAGS_1(dbitswap, TCG_CALL_NO_RWG_SE, tl, tl)
@@ -424,3 +409,5 @@ DEF_HELPER_3(cache, void, env, tl, i32)
#include "mod-dsp_helper.h.inc"
#include "mod-msa_helper.h.inc"
#include "mod-mt_helper.h.inc"
+
+#include "vendor-vr54xx_helper.h.inc"
diff --git a/target/mips/vendor-vr54xx_helper.h.inc
b/target/mips/vendor-vr54xx_helper.h.inc
new file mode 100644
index 00000000000..50b1f5b818d
--- /dev/null
+++ b/target/mips/vendor-vr54xx_helper.h.inc
@@ -0,0 +1,24 @@
+/*
+ * MIPS NEC Vr54xx instruction emulation helpers for QEMU.
+ *
+ * Copyright (c) 2004-2005 Jocelyn Mayer
+ * Copyright (c) 2006 Marius Groeger (FPU operations)
+ * Copyright (c) 2006 Thiemo Seufer (MIPS32R2 support)
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
+DEF_HELPER_3(muls, tl, env, tl, tl)
+DEF_HELPER_3(mulsu, tl, env, tl, tl)
+DEF_HELPER_3(macc, tl, env, tl, tl)
+DEF_HELPER_3(maccu, tl, env, tl, tl)
+DEF_HELPER_3(msac, tl, env, tl, tl)
+DEF_HELPER_3(msacu, tl, env, tl, tl)
+DEF_HELPER_3(mulhi, tl, env, tl, tl)
+DEF_HELPER_3(mulhiu, tl, env, tl, tl)
+DEF_HELPER_3(mulshi, tl, env, tl, tl)
+DEF_HELPER_3(mulshiu, tl, env, tl, tl)
+DEF_HELPER_3(macchi, tl, env, tl, tl)
+DEF_HELPER_3(macchiu, tl, env, tl, tl)
+DEF_HELPER_3(msachi, tl, env, tl, tl)
+DEF_HELPER_3(msachiu, tl, env, tl, tl)
--
2.26.2
- [PATCH v2 05/28] target/mips: Extract MSA helper definitions, (continued)
- [PATCH v2 05/28] target/mips: Extract MSA helper definitions, Philippe Mathieu-Daudé, 2020/11/23
- [PATCH v2 06/28] target/mips: Extract MSA translation routines, Philippe Mathieu-Daudé, 2020/11/23
- [PATCH v2 07/28] target/mips: Rename dsp_helper.c as mod-dsp_helper.c, Philippe Mathieu-Daudé, 2020/11/23
- [PATCH v2 08/28] target/mips: Extract DSP helper definitions, Philippe Mathieu-Daudé, 2020/11/23
- [PATCH v2 09/28] target/mips: Extract DSP translation routines, Philippe Mathieu-Daudé, 2020/11/23
- [PATCH v2 10/28] target/mips: Extract Multi-Threading helper definitions, Philippe Mathieu-Daudé, 2020/11/23
- [PATCH v2 11/28] target/mips: Extract Code Compaction ASE translation routines, Philippe Mathieu-Daudé, 2020/11/23
- [PATCH v2 12/28] target/mips: Extract the microMIPS ISA helper definitions, Philippe Mathieu-Daudé, 2020/11/23
- [PATCH v2 13/28] target/mips: Extract the microMIPS ISA translation routines, Philippe Mathieu-Daudé, 2020/11/23
- [PATCH v2 14/28] target/mips: Extract nanoMIPS ISA translation routines, Philippe Mathieu-Daudé, 2020/11/23
- [PATCH v2 16/28] target/mips: Extract NEC Vr54xx helper definitions,
Philippe Mathieu-Daudé <=
- [PATCH v2 17/28] target/mips: Extract NEC Vr54xx translation routines, Philippe Mathieu-Daudé, 2020/11/23
- [PATCH v2 19/28] target/mips: Extract Loongson SIMD helper definitions, Philippe Mathieu-Daudé, 2020/11/23
- [PATCH v2 18/28] target/mips: Rename lmmi_helper.c as loong-simd_helper.c, Philippe Mathieu-Daudé, 2020/11/23
- [PATCH v2 20/28] target/mips: Extract Loongson SIMD translation routines, Philippe Mathieu-Daudé, 2020/11/23
- [PATCH v2 15/28] target/mips: Extract NEC Vr54xx helpers to vendor-vr54xx_helper.c, Philippe Mathieu-Daudé, 2020/11/23
- [PATCH v2 21/28] target/mips: Extract Loongson EXTensions translation routines, Philippe Mathieu-Daudé, 2020/11/23
- [PATCH v2 23/28] target/mips: Make pipeline 1 multiply opcodes generic, Philippe Mathieu-Daudé, 2020/11/23
- [PATCH v2 24/28] target/mips: Extract Toshiba TXx9 translation routines, Philippe Mathieu-Daudé, 2020/11/23
- [PATCH v2 22/28] target/mips: Extract XBurst Media eXtension Unit translation routines, Philippe Mathieu-Daudé, 2020/11/23