[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 10/26] target/mips: Extract the microMIPS ISA helper definitions
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 10/26] target/mips: Extract the microMIPS ISA helper definitions |
Date: |
Fri, 20 Nov 2020 22:08:28 +0100 |
Extract the microMIPS ISA helper definitions to
'isa-micromips_helper.h.inc'.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
target/mips/helper.h | 10 ++--------
target/mips/isa-micromips_helper.h.inc | 17 +++++++++++++++++
2 files changed, 19 insertions(+), 8 deletions(-)
create mode 100644 target/mips/isa-micromips_helper.h.inc
diff --git a/target/mips/helper.h b/target/mips/helper.h
index c15caed9fca..ee93c2de836 100644
--- a/target/mips/helper.h
+++ b/target/mips/helper.h
@@ -181,14 +181,6 @@ DEF_HELPER_2(dmtc0_entrylo1, void, env, i64)
#endif /* !CONFIG_USER_ONLY */
-/* microMIPS functions */
-DEF_HELPER_4(lwm, void, env, tl, tl, i32)
-DEF_HELPER_4(swm, void, env, tl, tl, i32)
-#ifdef TARGET_MIPS64
-DEF_HELPER_4(ldm, void, env, tl, tl, i32)
-DEF_HELPER_4(sdm, void, env, tl, tl, i32)
-#endif
-
/* CP1 functions */
DEF_HELPER_2(cfc1, tl, env, i32)
DEF_HELPER_4(ctc1, void, env, tl, i32, i32)
@@ -427,6 +419,8 @@ DEF_HELPER_FLAGS_1(pmovmskb, TCG_CALL_NO_RWG_SE, i64, i64)
DEF_HELPER_3(cache, void, env, tl, i32)
+#include "isa-micromips_helper.h.inc"
+
#include "mod-mips-dsp_helper.h.inc"
#include "mod-mips-msa_helper.h.inc"
#include "mod-mips-mt_helper.h.inc"
diff --git a/target/mips/isa-micromips_helper.h.inc
b/target/mips/isa-micromips_helper.h.inc
new file mode 100644
index 00000000000..66a764c4aac
--- /dev/null
+++ b/target/mips/isa-micromips_helper.h.inc
@@ -0,0 +1,17 @@
+/*
+ * microMIPS 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)
+ * Copyright (c) 2009 CodeSourcery (MIPS16 and microMIPS support)
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
+DEF_HELPER_4(lwm, void, env, tl, tl, i32)
+DEF_HELPER_4(swm, void, env, tl, tl, i32)
+#ifdef TARGET_MIPS64
+DEF_HELPER_4(ldm, void, env, tl, tl, i32)
+DEF_HELPER_4(sdm, void, env, tl, tl, i32)
+#endif
--
2.26.2
- [PATCH 05/26] target/mips: Rename dsp_helper.c as mod-mips-dsp_helper.c, (continued)
- [PATCH 05/26] target/mips: Rename dsp_helper.c as mod-mips-dsp_helper.c, Philippe Mathieu-Daudé, 2020/11/20
- [PATCH 06/26] target/mips: Extract DSP helper definitions, Philippe Mathieu-Daudé, 2020/11/20
- [PATCH 08/26] target/mips: Extract Multi-Threading helper definitions, Philippe Mathieu-Daudé, 2020/11/20
- [PATCH 07/26] target/mips: Extract DSP translation routines, Philippe Mathieu-Daudé, 2020/11/20
- [PATCH 09/26] target/mips: Extract Code Compaction ASE translation routines, Philippe Mathieu-Daudé, 2020/11/20
- [PATCH 10/26] target/mips: Extract the microMIPS ISA helper definitions,
Philippe Mathieu-Daudé <=
- [PATCH 11/26] target/mips: Extract the microMIPS ISA translation routines, Philippe Mathieu-Daudé, 2020/11/20
- [PATCH 13/26] target/mips: Extract NEC Vr54xx helpers to vendor-vr54xx_helper.c, Philippe Mathieu-Daudé, 2020/11/20
- [PATCH 12/26] target/mips: Extract nanoMIPS ISA translation routines, Philippe Mathieu-Daudé, 2020/11/20
- [PATCH 14/26] target/mips: Extract NEC Vr54xx helper definitions, Philippe Mathieu-Daudé, 2020/11/20
- [PATCH 15/26] target/mips: Extract NEC Vr54xx translation routines, Philippe Mathieu-Daudé, 2020/11/20