mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 13:30:52 +00:00
aac357ec89
Special2 opcode have been removed from the Release 6. Add a single decodetree entry for all the opcode class, triggering Reserved Instruction if ever used. Remove unreachable check_insn_opc_removed() call. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20201208203704.243704-7-f4bug@amsat.org>
45 lines
1.0 KiB
C
45 lines
1.0 KiB
C
/*
|
|
* MIPS emulation for QEMU - # Release 6 translation routines
|
|
*
|
|
* Copyright (c) 2004-2005 Jocelyn Mayer
|
|
* Copyright (c) 2006 Marius Groeger (FPU operations)
|
|
* Copyright (c) 2006 Thiemo Seufer (MIPS32R2 support)
|
|
* Copyright (c) 2020 Philippe Mathieu-Daudé
|
|
*
|
|
* This code is licensed under the GNU GPLv2 and later.
|
|
*/
|
|
|
|
#include "qemu/osdep.h"
|
|
#include "tcg/tcg-op.h"
|
|
#include "exec/helper-gen.h"
|
|
#include "translate.h"
|
|
|
|
/* Include the auto-generated decoder. */
|
|
#include "decode-mips32r6.c.inc"
|
|
#include "decode-mips64r6.c.inc"
|
|
|
|
bool trans_REMOVED(DisasContext *ctx, arg_REMOVED *a)
|
|
{
|
|
gen_reserved_instruction(ctx);
|
|
|
|
return true;
|
|
}
|
|
|
|
static bool trans_LSA(DisasContext *ctx, arg_rtype *a)
|
|
{
|
|
return gen_lsa(ctx, a->rd, a->rt, a->rs, a->sa);
|
|
}
|
|
|
|
static bool trans_DLSA(DisasContext *ctx, arg_rtype *a)
|
|
{
|
|
return gen_dlsa(ctx, a->rd, a->rt, a->rs, a->sa);
|
|
}
|
|
|
|
bool decode_isa_rel6(DisasContext *ctx, uint32_t insn)
|
|
{
|
|
if (TARGET_LONG_BITS == 64 && decode_mips64r6(ctx, insn)) {
|
|
return true;
|
|
}
|
|
return decode_mips32r6(ctx, insn);
|
|
}
|