aboutsummaryrefslogtreecommitdiff
path: root/target/mips/tcg/msa_translate.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-05-29 20:06:13 +0200
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-06-24 16:48:08 +0200
commitf5c6ee0c6b7b4b79b52a1614a808633dbb694de4 (patch)
tree455688d123badd6669785d9e3a65323021d357a6 /target/mips/tcg/msa_translate.c
parent525ea877b27d933eaac69b32c75b8861779811cf (diff)
target/mips: Merge msa32/msa64 decodetree definitions
We don't need to maintain 2 sets of decodetree definitions. Merge them into a single file. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210617174636.2902654-3-f4bug@amsat.org>
Diffstat (limited to 'target/mips/tcg/msa_translate.c')
-rw-r--r--target/mips/tcg/msa_translate.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/target/mips/tcg/msa_translate.c b/target/mips/tcg/msa_translate.c
index 9df4497c88..eed2eca6c9 100644
--- a/target/mips/tcg/msa_translate.c
+++ b/target/mips/tcg/msa_translate.c
@@ -18,8 +18,7 @@
#include "internal.h"
/* Include the auto-generated decoder. */
-#include "decode-msa32.c.inc"
-#include "decode-msa64.c.inc"
+#include "decode-msa.c.inc"
#define OPC_MSA (0x1E << 26)
@@ -2269,13 +2268,8 @@ static bool trans_LSA(DisasContext *ctx, arg_rtype *a)
static bool trans_DLSA(DisasContext *ctx, arg_rtype *a)
{
- return gen_dlsa(ctx, a->rd, a->rt, a->rs, a->sa);
-}
-
-bool decode_ase_msa(DisasContext *ctx, uint32_t insn)
-{
- if (TARGET_LONG_BITS == 64 && decode_msa64(ctx, insn)) {
- return true;
+ if (TARGET_LONG_BITS != 64) {
+ return false;
}
- return decode_msa32(ctx, insn);
+ return gen_dlsa(ctx, a->rd, a->rt, a->rs, a->sa);
}