target/mips/rel6_translate: Change license to GNU LGPL v2.1 (or later)
[qemu/ar7.git] / target / mips / rel6_translate.c
blob0354370927d309fd5a723835fe286681c5485dcc
1 /*
2 * MIPS emulation for QEMU - Release 6 translation routines
4 * Copyright (c) 2020 Philippe Mathieu-Daudé
6 * SPDX-License-Identifier: LGPL-2.1-or-later
8 * This code is licensed under the LGPL v2.1 or later.
9 */
11 #include "qemu/osdep.h"
12 #include "tcg/tcg-op.h"
13 #include "exec/helper-gen.h"
14 #include "translate.h"
16 /* Include the auto-generated decoder. */
17 #include "decode-mips32r6.c.inc"
18 #include "decode-mips64r6.c.inc"
20 bool trans_REMOVED(DisasContext *ctx, arg_REMOVED *a)
22 gen_reserved_instruction(ctx);
24 return true;
27 static bool trans_LSA(DisasContext *ctx, arg_rtype *a)
29 return gen_lsa(ctx, a->rd, a->rt, a->rs, a->sa);
32 static bool trans_DLSA(DisasContext *ctx, arg_rtype *a)
34 return gen_dlsa(ctx, a->rd, a->rt, a->rs, a->sa);
37 bool decode_isa_rel6(DisasContext *ctx, uint32_t insn)
39 if (TARGET_LONG_BITS == 64 && decode_mips64r6(ctx, insn)) {
40 return true;
42 return decode_mips32r6(ctx, insn);