* mips-dis.c (_print_insn_mips) : Handle bfd_mach_mips4320.
authorGavin Romig-Koch <gavin@redhat.com>
Tue, 3 Mar 1998 16:53:41 +0000 (16:53 +0000)
committerGavin Romig-Koch <gavin@redhat.com>
Tue, 3 Mar 1998 16:53:41 +0000 (16:53 +0000)
* mips-opc.c ("mac","dmac") : Added 4320 insns.

opcodes/.Sanitize
opcodes/ChangeLog
opcodes/mips-opc.c

index 9cd333cf5f7495bed782374292324f0703f694a7..b633ed2a2a7fe20367cf6f15d5121e333b1e3f39 100644 (file)
@@ -238,6 +238,34 @@ else
        done
 fi
 
+vr4320_files="ChangeLog mips-opc.c mips-dis.c"
+if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
+       for i in $vr4320_files ; do
+               if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping vr4320 stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $vr4320_files ; do
+               if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"vr4320\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new
+                       if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+                               if [ -n "${verbose}" ] ; then
+                                       echo Caching $i in .Recover...
+                               fi
+                               mv $i .Recover
+                       fi
+                       mv new $i
+               fi
+       done
+fi
+
 vr5400_files="ChangeLog mips-opc.c mips-dis.c"
 if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
        for i in $vr5400_files ; do
index bf5345ed1165129d8a5c0be954a569d386b50525..939cdb86241fdfe69c755fcb665db26fa79d2c2d 100644 (file)
@@ -1,3 +1,10 @@
+start-sanitize-vr4320
+Tue Mar  3 11:47:58 1998  Gavin Koch  <gavin@cygnus.com>
+
+       * mips-dis.c (_print_insn_mips) : Handle bfd_mach_mips4320.
+       * mips-opc.c ("mac","dmac") : Added 4320 insns.
+
+end-sanitize-vr4320
 Sat Feb 28 16:02:34 1998  Nick Clifton  <nickc@cygnus.com>
 
        * arm-dis.c (print_insn_big_arm, print_insn_little_arm): Do not
index 7cf2e1a7fd8bb02af4438dd4348656cc2c390d9a..e7de688ee5fa954831ef0d03f1c87bfb328bbaa2 100644 (file)
@@ -79,6 +79,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  *
 /* start-sanitize-tx49 */
 #define T4      INSN_4900
 /* end-sanitize-tx49 */
+/* start-sanitize-vr4320 */
+#define N4     INSN_4320
+/* end-sanitize-vr4320 */
 /* start-sanitize-vr5400 */
 #define N5     INSN_5400
 /* end-sanitize-vr5400 */
@@ -520,6 +523,10 @@ const struct mips_opcode mips_builtin_opcodes[] = {
 {"lwu",     "t,o(b)",  0x9c000000, 0xfc000000, LDD|RD_b|WR_t,  I3      },
 {"lwu",     "t,A(b)",  0,    (int) M_LWU_AB,   INSN_MACRO,     I3      },
 {"lwxc1",   "D,t(b)",  0x4c000000, 0xfc00f83f, LDD|WR_D|RD_t|RD_b,     I4      },
+  /* start-sanitize-vr4320 */
+{"mac",     "s,t",     0x00000028, 0xfc00ffff, RD_s|RD_t|MOD_HILO,     N4},
+{"dmac",    "s,t",     0x00000029, 0xfc00ffff, RD_s|RD_t|WR_LO,        N4},
+  /* end-sanitize-vr4320 */
   /* start-sanitize-vr5400 */
 {"macc",    "d,s,t",   0x00000158, 0xfc0007ff, RD_s|RD_t|MOD_HILO|WR_d,        N5      },
 {"maccu",   "d,s,t",   0x00000159, 0xfc0007ff, RD_s|RD_t|MOD_HILO|WR_d,        N5      },