xref: /openbmc/qemu/target/mips/tcg/rel6_translate.c (revision 369081c4558e7e940fa36ce59bf17b2e390f55d3)
1a2b0a27dSPhilippe Mathieu-Daudé /*
2a2b0a27dSPhilippe Mathieu-Daudé  *  MIPS emulation for QEMU - Release 6 translation routines
3a2b0a27dSPhilippe Mathieu-Daudé  *
4a2b0a27dSPhilippe Mathieu-Daudé  *  Copyright (c) 2020 Philippe Mathieu-Daudé
5a2b0a27dSPhilippe Mathieu-Daudé  *
6a2b0a27dSPhilippe Mathieu-Daudé  * SPDX-License-Identifier: LGPL-2.1-or-later
7a2b0a27dSPhilippe Mathieu-Daudé  *
8a2b0a27dSPhilippe Mathieu-Daudé  * This code is licensed under the LGPL v2.1 or later.
9a2b0a27dSPhilippe Mathieu-Daudé  */
10a2b0a27dSPhilippe Mathieu-Daudé 
11a2b0a27dSPhilippe Mathieu-Daudé #include "qemu/osdep.h"
12a2b0a27dSPhilippe Mathieu-Daudé #include "translate.h"
13a2b0a27dSPhilippe Mathieu-Daudé 
1412f79f11SPhilippe Mathieu-Daudé /* Include the auto-generated decoders.  */
1512f79f11SPhilippe Mathieu-Daudé #include "decode-rel6.c.inc"
16a2b0a27dSPhilippe Mathieu-Daudé 
trans_REMOVED(DisasContext * ctx,arg_REMOVED * a)17a2b0a27dSPhilippe Mathieu-Daudé bool trans_REMOVED(DisasContext *ctx, arg_REMOVED *a)
18a2b0a27dSPhilippe Mathieu-Daudé {
19a2b0a27dSPhilippe Mathieu-Daudé     gen_reserved_instruction(ctx);
20a2b0a27dSPhilippe Mathieu-Daudé 
21a2b0a27dSPhilippe Mathieu-Daudé     return true;
22a2b0a27dSPhilippe Mathieu-Daudé }
23a2b0a27dSPhilippe Mathieu-Daudé 
trans_LSA(DisasContext * ctx,arg_r * a)24*34fe9fa3SPhilippe Mathieu-Daudé static bool trans_LSA(DisasContext *ctx, arg_r *a)
25a2b0a27dSPhilippe Mathieu-Daudé {
26a2b0a27dSPhilippe Mathieu-Daudé     return gen_lsa(ctx, a->rd, a->rt, a->rs, a->sa);
27a2b0a27dSPhilippe Mathieu-Daudé }
28a2b0a27dSPhilippe Mathieu-Daudé 
trans_DLSA(DisasContext * ctx,arg_r * a)29*34fe9fa3SPhilippe Mathieu-Daudé static bool trans_DLSA(DisasContext *ctx, arg_r *a)
30a2b0a27dSPhilippe Mathieu-Daudé {
3112f79f11SPhilippe Mathieu-Daudé     if (TARGET_LONG_BITS != 64) {
3212f79f11SPhilippe Mathieu-Daudé         return false;
3312f79f11SPhilippe Mathieu-Daudé     }
34a2b0a27dSPhilippe Mathieu-Daudé     return gen_dlsa(ctx, a->rd, a->rt, a->rs, a->sa);
35a2b0a27dSPhilippe Mathieu-Daudé }
36