mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
target/mips: Merge 32-bit/64-bit Release6 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> Message-Id: <20210801234202.3167676-4-f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
4919f69c65
commit
12f79f1173
4 changed files with 19 additions and 40 deletions
|
@ -13,9 +13,8 @@
|
|||
#include "exec/helper-gen.h"
|
||||
#include "translate.h"
|
||||
|
||||
/* Include the auto-generated decoder. */
|
||||
#include "decode-mips32r6.c.inc"
|
||||
#include "decode-mips64r6.c.inc"
|
||||
/* Include the auto-generated decoders. */
|
||||
#include "decode-rel6.c.inc"
|
||||
|
||||
bool trans_REMOVED(DisasContext *ctx, arg_REMOVED *a)
|
||||
{
|
||||
|
@ -31,13 +30,8 @@ static bool trans_LSA(DisasContext *ctx, arg_rtype *a)
|
|||
|
||||
static bool trans_DLSA(DisasContext *ctx, arg_rtype *a)
|
||||
{
|
||||
if (TARGET_LONG_BITS != 64) {
|
||||
return false;
|
||||
}
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue