2020-12-08 21:00:44 +03:00
|
|
|
/*
|
2021-04-20 13:06:32 +03:00
|
|
|
* MIPS emulation for QEMU - Release 6 translation routines
|
2020-12-08 21:00:44 +03:00
|
|
|
*
|
|
|
|
* Copyright (c) 2020 Philippe Mathieu-Daudé
|
|
|
|
*
|
2021-04-20 13:06:32 +03:00
|
|
|
* SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
*
|
|
|
|
* This code is licensed under the LGPL v2.1 or later.
|
2020-12-08 21:00:44 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "qemu/osdep.h"
|
|
|
|
#include "translate.h"
|
|
|
|
|
2021-08-01 21:29:29 +03:00
|
|
|
/* Include the auto-generated decoders. */
|
|
|
|
#include "decode-rel6.c.inc"
|
2020-12-08 21:00:44 +03:00
|
|
|
|
2020-11-24 17:17:25 +03:00
|
|
|
bool trans_REMOVED(DisasContext *ctx, arg_REMOVED *a)
|
|
|
|
{
|
|
|
|
gen_reserved_instruction(ctx);
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2021-07-27 22:13:49 +03:00
|
|
|
static bool trans_LSA(DisasContext *ctx, arg_r *a)
|
2020-12-08 21:00:44 +03:00
|
|
|
{
|
|
|
|
return gen_lsa(ctx, a->rd, a->rt, a->rs, a->sa);
|
|
|
|
}
|
|
|
|
|
2021-07-27 22:13:49 +03:00
|
|
|
static bool trans_DLSA(DisasContext *ctx, arg_r *a)
|
2020-12-08 21:00:44 +03:00
|
|
|
{
|
2021-08-01 21:29:29 +03:00
|
|
|
if (TARGET_LONG_BITS != 64) {
|
|
|
|
return false;
|
2020-12-08 21:00:44 +03:00
|
|
|
}
|
2021-08-01 21:29:29 +03:00
|
|
|
return gen_dlsa(ctx, a->rd, a->rt, a->rs, a->sa);
|
2020-12-08 21:00:44 +03:00
|
|
|
}
|