Diff for /qemu/sh4-dis.c between versions 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2018/04/24 16:47:37 version 1.1.1.3, 2018/04/24 16:50:58
Line 14 Line 14
   
    You should have received a copy of the GNU General Public License     You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software     along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */     Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
      MA 02110-1301, USA.  */
   
 #include <stdio.h>  #include <stdio.h>
 #include "dis-asm.h"  #include "dis-asm.h"
Line 325  SH4AL-dsp                                Line 326  SH4AL-dsp                               
   
 typedef struct  typedef struct
 {  {
   char *name;    const char *name;
   sh_arg_type arg[4];    sh_arg_type arg[4];
   sh_nibble_type nibbles[9];    sh_nibble_type nibbles[9];
   unsigned int arch;    unsigned int arch;
Line 1386  print_insn_ppi (field_b, info) Line 1387  print_insn_ppi (field_b, info)
      int field_b;       int field_b;
      struct disassemble_info *info;       struct disassemble_info *info;
 {  {
   static char *sx_tab[] = { "x0", "x1", "a0", "a1" };    static const char *sx_tab[] = { "x0", "x1", "a0", "a1" };
   static char *sy_tab[] = { "y0", "y1", "m0", "m1" };    static const char *sy_tab[] = { "y0", "y1", "m0", "m1" };
   fprintf_ftype fprintf_fn = info->fprintf_func;    fprintf_ftype fprintf_fn = info->fprintf_func;
   void *stream = info->stream;    void *stream = info->stream;
   unsigned int nib1, nib2, nib3;    unsigned int nib1, nib2, nib3;
   unsigned int altnib1, nib4;    unsigned int altnib1, nib4;
   char *dc = NULL;    const char *dc = NULL;
   const sh_opcode_info *op;    const sh_opcode_info *op;
   
   if ((field_b & 0xe800) == 0)    if ((field_b & 0xe800) == 0)
Line 1405  print_insn_ppi (field_b, info) Line 1406  print_insn_ppi (field_b, info)
     }      }
   if ((field_b & 0xc000) == 0x4000 && (field_b & 0x3000) != 0x1000)    if ((field_b & 0xc000) == 0x4000 && (field_b & 0x3000) != 0x1000)
     {      {
       static char *du_tab[] = { "x0", "y0", "a0", "a1" };        static const char *du_tab[] = { "x0", "y0", "a0", "a1" };
       static char *se_tab[] = { "x0", "x1", "y0", "a1" };        static const char *se_tab[] = { "x0", "x1", "y0", "a1" };
       static char *sf_tab[] = { "y0", "y1", "x0", "a1" };        static const char *sf_tab[] = { "y0", "y1", "x0", "a1" };
       static char *sg_tab[] = { "m0", "m1", "a0", "a1" };        static const char *sg_tab[] = { "m0", "m1", "a0", "a1" };
   
       if (field_b & 0x2000)        if (field_b & 0x2000)
         {          {

Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.3


unix.superglobalmegacorp.com