hw/mips/loongson3_virt: do not require CONFIG_USB
[qemu/ar7.git] / target / mips / tcg / rel6_translate.c
blob59f237ba3bac845121a6a5c472fc515a38d47a76
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 "translate.h"
14 /* Include the auto-generated decoders. */
15 #include "decode-rel6.c.inc"
17 bool trans_REMOVED(DisasContext *ctx, arg_REMOVED *a)
19 gen_reserved_instruction(ctx);
21 return true;
24 static bool trans_LSA(DisasContext *ctx, arg_r *a)
26 return gen_lsa(ctx, a->rd, a->rt, a->rs, a->sa);
29 static bool trans_DLSA(DisasContext *ctx, arg_r *a)
31 if (TARGET_LONG_BITS != 64) {
32 return false;
34 return gen_dlsa(ctx, a->rd, a->rt, a->rs, a->sa);