hw/timer/sse-timer: Model the SSE Subsystem System Timer
[qemu/ar7.git] / target / mips / rel6_translate.c
blob139a7524eea3e8fd8b210f5a4893f8e8b416a836
1 /*
2 * MIPS emulation for QEMU - # Release 6 translation routines
4 * Copyright (c) 2004-2005 Jocelyn Mayer
5 * Copyright (c) 2006 Marius Groeger (FPU operations)
6 * Copyright (c) 2006 Thiemo Seufer (MIPS32R2 support)
7 * Copyright (c) 2020 Philippe Mathieu-Daudé
9 * This code is licensed under the GNU GPLv2 and later.
12 #include "qemu/osdep.h"
13 #include "tcg/tcg-op.h"
14 #include "exec/helper-gen.h"
15 #include "translate.h"
17 /* Include the auto-generated decoder. */
18 #include "decode-mips32r6.c.inc"
19 #include "decode-mips64r6.c.inc"
21 bool trans_REMOVED(DisasContext *ctx, arg_REMOVED *a)
23 gen_reserved_instruction(ctx);
25 return true;
28 static bool trans_LSA(DisasContext *ctx, arg_rtype *a)
30 return gen_lsa(ctx, a->rd, a->rt, a->rs, a->sa);
33 static bool trans_DLSA(DisasContext *ctx, arg_rtype *a)
35 return gen_dlsa(ctx, a->rd, a->rt, a->rs, a->sa);
38 bool decode_isa_rel6(DisasContext *ctx, uint32_t insn)
40 if (TARGET_LONG_BITS == 64 && decode_mips64r6(ctx, insn)) {
41 return true;
43 return decode_mips32r6(ctx, insn);