[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/9] mips: Properly define jit_mips2_p()
From: |
Paul Cercueil |
Subject: |
[PATCH 1/9] mips: Properly define jit_mips2_p() |
Date: |
Thu, 19 May 2022 10:39:10 +0100 |
This macro returns 1 if the processor is MIPS32r2, 0 otherwise.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
---
lib/jit_mips-cpu.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/jit_mips-cpu.c b/lib/jit_mips-cpu.c
index 6541a7b..0014e90 100644
--- a/lib/jit_mips-cpu.c
+++ b/lib/jit_mips-cpu.c
@@ -54,8 +54,11 @@ typedef union {
#endif
int op;
} jit_instr_t;
-/* FIXME */
+#if defined(_MIPS_ARCH_MIPS32R2) || defined(_MIPS_ARCH_MIPS64R2)
+# define jit_mips2_p() 1
+#else
# define jit_mips2_p() 0
+#endif
# define _ZERO_REGNO 0
# define _T0_REGNO 0x08
# define _T1_REGNO 0x09
--
2.35.1
- [PATCH 0/9] MIPS improvements, Paul Cercueil, 2022/05/19
- [PATCH 1/9] mips: Properly define jit_mips2_p(),
Paul Cercueil <=
- [PATCH 2/9] mips: Fix is_low_mask() to support -1, Paul Cercueil, 2022/05/19
- [PATCH 3/9] mips: Optimize jit_andi further, Paul Cercueil, 2022/05/19
- [PATCH 4/9] mips: Optimize jit_bmsi / jit_bmci, Paul Cercueil, 2022/05/19
- [PATCH 5/9] mips: Optimize jit_extr_ui, Paul Cercueil, 2022/05/19
- [PATCH 6/9] mips: Use 32-bit MUL opcode for mulr() on 32-bit MIPS, Paul Cercueil, 2022/05/19
- [PATCH 7/9] mips: Optimize jit_lei / jit_lei_u, Paul Cercueil, 2022/05/19
- [PATCH 8/9] mips: Optimize jit_gei/jit_gei_u, Paul Cercueil, 2022/05/19
- [PATCH 9/9] mips: Optimize jit_htonr_us/jit_htonr_ui, Paul Cercueil, 2022/05/19