qemu

FORK: QEMU emulator
git clone https://git.neptards.moe/neptards/qemu.git
Log | Files | Refs | Submodules | LICENSE

rel6_translate.c (794B)


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